You should use React.FunctionComponent
: Rename React’s SFC to ‘FunctionalComponent
This PR renames
React.SFC
andReact.StatelessComponent
toReact.FunctionComponent
, while introducing deprecated aliases for the old names.
So your example would become:
const example: React.FunctionComponent<IExample> = ({propsType}) => ();
or
const example: React.FC<IExample> = ({propsType}) => ();