score:2

Accepted answer
// Anything that can be rendered: numbers, strings, elements or an array
// (or fragment) containing these types.
optionalNode: PropTypes.node,

score:2

Test.propTypes = {
  icon: PropTypes.element
};

Related Query

More Query from same tag