// How to require a component to have children static propTypes = { children: PropTypes.node.isRequired }
// How to require a named property is of type string and that it is required static propTypes = { firstName: PropTypes.string.isRequired }
Last updated 5 years ago
Was this helpful?