Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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;
Source by felixgerschau.com #
 
PREVIOUS NEXT
Tagged: #onblur #typescript
ADD COMMENT
Topic
Name
3+2 =