I\'m using React with TypeScript and I\'ve created stateless function. I\'ve removed useless code from the example for readability.
interface CenterBoxProps exte
For Functional Components as of React 16.7.0 the 'React.SFC' type is being deprecated in favour of 'React.FC
'.
type TFuncComp = React.FC<{ text: string }>
const FuncComp: TFuncComp = props => {props.text}
FuncComp.defaultProps = { text: 'Empty Text' }
Deprecation Warning in Source
FC (FunctionalComponent) Type in Source