Skip to content

Commit 4a0608b

Browse files
yangli-ioljharb
authored andcommitted
[Docs] label-has-associated-control: update label id
1 parent 9957219 commit 4a0608b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules/label-has-associated-control.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ In this case, use `htmlFor` and an ID to associate the controls.
3030

3131
```jsx
3232
<label htmlFor={domId}>Surname</label>
33-
<input type="text" id="domId" />
33+
<input type="text" id={domId} />
3434
```
3535

3636
### Case: My label and input components are custom components.

0 commit comments

Comments
 (0)