Closed Myzel394 closed 3 years ago
Since from the following Stackoverflow Answer
1 Answer
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}) => ();
React.FC
or React.FunctionComponent
HI @Myzel394 ,
Can you please check in your system why its happening.
title ?: string;