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 0e85ab9 commit be3c3c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/rules/checked-requires-onchange-or-readonly.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ Example of **correct** code for this rule:
<input type="checkbox" checked onChange readOnly />
<input type="checkbox" defaultChecked />

React.createElement('input', {type: 'checkbox', checked: true, onChange: () => {}})
React.createElement('input', {type: 'checkbox', checked: true, readOnly: true})
React.createElement('input', {type: 'checkbox', checked: true, onChange: () => {}, readOnly: true})
React.createElement('input', {type: 'checkbox', defaultChecked: true})
React.createElement('input', { type: 'checkbox', checked: true, onChange() {} });
React.createElement('input', { type: 'checkbox', checked: true, readOnly: true });
React.createElement('input', { type: 'checkbox', checked: true, onChange() {}, readOnly: true });
React.createElement('input', { type: 'checkbox', defaultChecked: true });
```

## Rule Options
Expand Down

0 comments on commit be3c3c1

Please sign in to comment.