← React Intermediate Questions - Set 9 Q82

What are prop types in React?

React Intermediate Questions - Set 9

Example

import PropTypes from 'prop-types';
Card.propTypes = { title: PropTypes.string.isRequired, count: PropTypes.number };

What to notice

← Back to the question list