-
Notifications
You must be signed in to change notification settings - Fork 46.9k
New issue
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
Warn when value
and defaultValue
are both specified
#5819
Comments
👍 I've run into this before and it can trip up new React developers. |
@syranide No, afaik, #5680 is trying to fix #4618 when using uncontrolled components. |
@jimfb Ah ok I see now... Hmm, I don't advocate it at all, but if that PR is meant to fix Anyway, wrong issue to have this discussion in. 👍 |
This should be illegal:
Users need to decide if they are using controlled or uncontrolled inputs. We should warn if both properties are specified.
The text was updated successfully, but these errors were encountered: