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
The main drawback to this that I think of right now is that it might not work so well with some of the React lint rules.
I'm not sure what this method should be named, or perhaps if we add propTypes and defaultProps, we could just attach those to the return value of the current method as a convenience.
The text was updated successfully, but these errors were encountered:
Currently, if you want to use mutuallyExclusiveTrueProps, you need to do something like this:
I wonder if it would be useful to be able to do something more like:
And, if you wanted to also have this generate the defaultProps for you:
or, obviously:
The main drawback to this that I think of right now is that it might not work so well with some of the React lint rules.
I'm not sure what this method should be named, or perhaps if we add propTypes and defaultProps, we could just attach those to the return value of the current method as a convenience.
The text was updated successfully, but these errors were encountered: