← React Intermediate Questions - Set 9 Q82

What are prop types in React?

React Intermediate Questions - Set 9

Example

Item.propTypes = { id: PropTypes.string.isRequired };

What to notice

← Back to the question list