If your component has no state, you do not need to use the class at all. You can also use the stateless response component (SFC) as an answer to this question .
const MyStatelessComponent : React.StatelessComponent<{}> = props =>
<li>{props.children}</li>;
Or if your markup gets huge:
const MyStatelessComponent : React.StatelessComponent<{}> = props => {
return <li>{props.children}</li>;
}
source
share