I have a React Component whose prop-types I've defined. Whenever I'm logging out the propTypes in React. it logs me out a function which is possibly the validator. I want to print the propType and whether the prop is required or not (e.g. prop1: {required: true, value: 5}) at this point. How can I do that?
I have a React Component whose prop-types I've defined. Whenever I'm logging out the propTypes in React. it logs me out a function which is possibly the validator. I want to print the propType and whether the prop is required or not (e.g. prop1: {required: true, value: 5}) at this point. How can I do that?