Answers for "How to specify the shape of an object with PropTypes"

2

proptypes shape

PropTypes.shape({ name: PropTypes.string, age: PropTypes.number })
Posted by: Guest on December-28-2020

Browse Popular Code Answers by Language