Skip to content

Commit 6a90c19

Browse files
committed
docs: minor improvements
1 parent f453907 commit 6a90c19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/pages/docs/rules/no-forward-ref.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ interface MyInputProps {
7878
}
7979

8080
function MyInput({ ref, value, onChange }: MyInputProps & { ref: React.RefObject<HTMLInputElement> }) {
81-
// ...
81+
return <input ref={ref} value={value} onChange={(e) => onChange(e.target.value)} />;
8282
}
8383
```
8484

0 commit comments

Comments
 (0)