We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
So, it should use this form of the prop check:
function(props, propName, componentName) { if (!/matchme/.test(props[propName])) { return new Error( 'Invalid prop `' + propName + '` supplied to' + ' `' + componentName + '`. Validation failed.' ); } },
Which gives us an opportunity to drop prop-types dependency completely, always emitting our custom checks. Which is gooooood.
prop-types
The text was updated successfully, but these errors were encountered:
With that change, we will receive the solid core annotation subset working for both props and state.
Annotation level 1 - just assertions. Works for everything. Type, Type.isRequired, Type.has.check
Type
Type.isRequired
Type.has.check
Level 2 - defaults, changes, and events. Wors for props and state. defaultValue, Type.value, Type.watcher, Type.has.events, Type.has.changeEvents
defaultValue
Type.value
Type.watcher
Type.has.events
Type.has.changeEvents
Level 3 - serialization, hooks, shared annotations. Just state.
Sorry, something went wrong.
No branches or pull requests
So, it should use this form of the prop check:
Which gives us an opportunity to drop
prop-types
dependency completely, always emitting our custom checks. Which is gooooood.The text was updated successfully, but these errors were encountered: