What is the TypeScript equivalent of React.PropTypes.node?
TypeScript for React developer
In Typescript, it has the checked type React.ReactNode
which work the same as React.PropTypes.node
in prop-types.
eg:
export interface PersonProps { children: (name: string, age: number) => React.ReactNode}