Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript type for jsx element

// JSX element type = JSX.Element - See below
//    Name       Type       props with PropType    Return type
const Component: React.FC = (props: SomePropType): JSX.Element => {
  return <div></div>;
}
Source by www.typescriptlang.org #
 
PREVIOUS NEXT
Tagged: #typescript #type #jsx #element
ADD COMMENT
Topic
Name
8+7 =