Answers for "typescript type for jsx element"

1

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>;
}
Posted by: Guest on September-15-2021

Code answers related to "typescript type for jsx element"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language