Skip to content

Rule to warn on incomplete input elements? #180

@karlhorky

Description

@karlhorky

To help students learn the Controlled Component and defaultValue patterns, should we add an ESLint rule to warn if all of the following is true?

  1. <input /> used in JSX
  2. And either
    1. <input /> has onChange prop with a callback containing a set<string> function call, and <input /> does not have a value prop
    2. <input /> does not have onChange prop, and <input /> does not have a defaultValue prop

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions