How to use the shapeImmutable function from prop-types
Find comprehensive JavaScript prop-types.shapeImmutable code examples handpicked from public code repositorys.
179 180 181 182 183 184 185 186 187 188
</div> ); }; User.propTypes = { user: PropTypes.shapeImmutable({ isLoading: PropTypes.bool.isRequired, data: PropTypes.shape({ name: PropTypes.string.isRequired, age: PropTypes.number,
388
0
3
+ 3 other calls in file
prop-types.default is the most popular function in prop-types (2947 examples)