OnBlur TypeScript

import React, { FocusEvent } from 'react';

const InputComponent = () => {
  const handleFocusEvent = (e: FocusEvent<HTMLInputElement>) => {
    // Do something
  };

  return <input value="Some text" onBlur={handleFocusEvent} />;
};

export default InputComponent;
Stormy Sloth