The App.proptypes is used for validating props in React components.

Here is the syntax:

class App extends React.Component {
    render() {}
}
Component.propTypes = { /*Definition */};

BY Best Interview Question ON 23 Jan 2021