Skip to content

Commit 0e85ab9

Browse files
jaesoekjjangljharb
andauthored
Update docs/rules/checked-requires-onchange-or-readonly.md
Co-authored-by: Jordan Harband <[email protected]>
1 parent 552c7b1 commit 0e85ab9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/rules/checked-requires-onchange-or-readonly.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ React.createElement('input', { type: 'checkbox', checked: true, defaultChecked:
2323
Example of **correct** code for this rule:
2424

2525
```jsx
26-
<input type='checkbox' checked onChange={() => {}}/>
27-
<input type='checkbox' checked readOnly/>
28-
<input type='checkbox' checked onChange readOnly/>
29-
<input type='checkbox' defaultChecked/>
26+
<input type="checkbox" checked onChange={() => {}} />
27+
<input type="checkbox" checked readOnly />
28+
<input type="checkbox" checked onChange readOnly />
29+
<input type="checkbox" defaultChecked />
3030

3131
React.createElement('input', {type: 'checkbox', checked: true, onChange: () => {}})
3232
React.createElement('input', {type: 'checkbox', checked: true, readOnly: true})

0 commit comments

Comments
 (0)