1.

How to apply validation on props in React?

Answer»

The App.proptypes is USED for VALIDATING props in React components.

Here is the syntax:

class App EXTENDS React.Component {
    RENDER() {}
}
Component.propTypes = { /*DEFINITION */};



Discussion

No Comment Found