Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- active: true,
- foo: {
- bar: 'baz'
- }
- }
- {
- active: false
- }
- MyComponent.propTypes = {
- config: PropTypes.oneOf([
- {
- active: false
- },
- PropTypes.shape({
- active: true,
- foo: PropTypes.shape({
- bar: PropTypes.string.isRequired
- })
- }).isRequired
- ]).isRequired
- };
Add Comment
Please, Sign In to add comment