New Rule: onChange
or readOnly
prop when checked
is set on an input
element
#3143
Labels
onChange
or readOnly
prop when checked
is set on an input
element
#3143
Hi there! 👋
The following code produces a warning from React (see below):
This is the warning:
Since React shows a warning for it, maybe there can be a lint rule for it too? To guide developers towards either:
onChange
orreadOnly
props withchecked
prop on aninput
defaultChecked
for uncontrolled componentsThe text was updated successfully, but these errors were encountered: