Skip to content

Commit

Permalink
Update docs/rules/checked-requires-onchange-or-readonly.md
Browse files Browse the repository at this point in the history
Co-authored-by: Jordan Harband <[email protected]>
  • Loading branch information
jaesoekjjang and ljharb authored Feb 1, 2024
1 parent 102d9af commit 4ef7e71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/rules/checked-requires-onchange-or-readonly.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ It also warns when `checked` and `defaultChecked` properties are used together.
Example of **incorrect** code for this rule:

```jsx
<input type='checkbox' checked/>
<input type='checkbox' checked defaultChecked/>
<input type='radio' checked defaultChecked/>
<input type="checkbox" checked />
<input type="checkbox" checked defaultChecked />
<input type="radio" checked defaultChecked />

React.createElement('input', {checked: false})
React.createElement('input', {type: 'checkbox', checked: true})
Expand Down

0 comments on commit 4ef7e71

Please sign in to comment.