Closed rtate2 closed 4 years ago
• In src/helpers/propz/playerShape.js create:
src/helpers/propz/playerShape.js
const playerShape = PropTypes.shape({ id: PropTypes.string, firstName: PropTypes.string.isRequired, lastName: PropTypes.string.isRequired, });
• At the top of the file import PropTypes from 'prop-types';
import PropTypes from 'prop-types';
• At the very bottom of the file export default { playerShape };
export default { playerShape };
Dev Notes
• In
src/helpers/propz/playerShape.js
create:• At the top of the file
import PropTypes from 'prop-types';
• At the very bottom of the file
export default { playerShape };