How to use the exact function from prop-types
Find comprehensive JavaScript prop-types.exact code examples handpicked from public code repositorys.
116 117 118 119 120 121 122 123 124
optionalProperty: PropTypes.string, requiredProperty: PropTypes.number.isRequired }), // An object with warnings on extra properties optionalObjectWithStrictShape: PropTypes.exact({ optionalProperty: PropTypes.string, requiredProperty: PropTypes.number.isRequired }),
388
0
59
prop-types.default is the most popular function in prop-types (2947 examples)