You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.
Good idea. In 0.6.0 I've added a set of static helpers, including one called setPropTypes(), which works essentially the same as the version in your original comment.
Since propTypes are only useful during development, I don't think it makes sense to wrap the base component in a new component, so this actually mutates the base component.
great library! So, I had been doing prop types, at least with stateless functions, like so:
Which looks ugly. Maybe it's even too simple for this lib, but a withPropTypes could look like
Would still support non-stateless components while fitting nicely in the final compose.
The text was updated successfully, but these errors were encountered: