Created
September 12, 2019 17:05
-
-
Save ricexen/c906af00814eb403c3744ab83836d2b8 to your computer and use it in GitHub Desktop.
This file contains 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 Component = ({children}) => <div>{children}</div>; | |
Component.propTypes = { | |
children: PropTypes.oneOfType([ | |
PropTypes.arrayOf(PropTypes.node), | |
PropTypes.node | |
]).isRequired | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment