Created
February 7, 2021 15:26
-
-
Save bastienapp/4c5e0124c277e36f96a959ca45f72b90 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import PropTypes from 'prop-types'; | |
| const childrenPropType = { | |
| children: PropTypes.oneOfType([ | |
| PropTypes.arrayOf(PropTypes.node), | |
| PropTypes.node, | |
| ]).isRequired, | |
| }; | |
| export default childrenPropType; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment