How to use the any function from prop-types
Find comprehensive JavaScript prop-types.any code examples handpicked from public code repositorys.
124 125 126 127 128 129 130 131 132 133
}), requiredFunc: PropTypes.func.isRequired, // A value of any data type requiredAny: PropTypes.any.isRequired, // You can also specify a custom validator. It should return an Error // object if the validation fails. Don't `console.warn` or throw, as this // won't work inside `oneOfType`.
388
0
59
28 29 30 31 32 33 34 35 36 37
onFileAdd: PropTypes.func.isRequired, onFileRemove: PropTypes.func.isRequired, onFileValidation: PropTypes.func, style: PropTypes.object, theme: themeShape, uploadedFile: PropTypes.any }; state = { dragging: false,
61
78
23
6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642
PaginationLink.defaultProps = defaultProps$f; /** * TabContext * { * activeTabId: PropTypes.any * } */ var TabContext = React__default["default"].createContext({});
0
0
1
GitHub: iustins/online-shop
3086 3087 3088 3089 3090 3091 3092 3093 3094 3095
checked: PropTypes.bool, className: PropTypes.string, disabled: PropTypes.bool, icon: PropTypes.string, triggerOptionClick: PropTypes.func, value: PropTypes.any }; exports.MDBSelectOption.defaultProps = { children: "span", checked: false,
0
0
1
+ 19 other calls in file
prop-types.default is the most popular function in prop-types (2947 examples)