Answers for "proptypes array of string and objects"

3

proptypes array of objects

MyComponent.propTypes = {
  items: PropTypes.arrayOf(
    PropTypes.shape({
      code: PropTypes.string,
      id: PropTypes.number,
    })
  ),
};
Posted by: Guest on September-03-2020

Code answers related to "proptypes array of string and objects"

Browse Popular Code Answers by Language