Validate React Prop

You can validate the property of a React component using the built in PropTypes

When i pass the following props to the component

When there are validation errors they will be shown in the console as warning message

Warning: Failed prop type: Invalid prop rowsperpage of type string supplied to Setting, expected number.