DEV Community

Mahir-Ahsef
Mahir-Ahsef

Posted on

proptypes in react

PropTypes is React's core approach for delivering type verification to components. React components use a custom property called propTypes to set up type verification. When props are passed to a React component, they are compared to the type definitions in the propTypes property.

Top comments (0)