How to use the element function from prop-types
Find comprehensive JavaScript prop-types.element code examples handpicked from public code repositorys.
71 72 73 74 75 76 77 78 79 80
/** * this is essentially children. However we can't use children because then * using `wrapper.setProps({ children })` would work differently if this component * would be the root. */ __element: PropTypes.element.isRequired, __strict: PropTypes.bool.isRequired } : void 0; var warnedOnce = false; // Generate an enhanced mount function.
0
3
1
+ 3 other calls in file
406 407 408 409 410 411 412
, perspective: PropTypes.shape( SerialisedPerspective ).isRequired , contextinstance: PropTypes.string.isRequired , roleinstance: PropTypes.string , myroletype: PropTypes.string.isRequired , create: PropTypes.func , card: PropTypes.element };
0
0
1
+ 2 other calls in file
prop-types.default is the most popular function in prop-types (2947 examples)