Skip to content

Commit 996e959

Browse files
committed
docs: minor fixes
1 parent 6af7087 commit 996e959

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/plugins/eslint-plugin-react-x/src/rules/no-forward-ref.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ const MyInput = React.forwardRef<MyInputProps, HTMLInputElement>(
7171
### After
7272

7373
```tsx
74+
import React from "react";
75+
7476
function MyInput({ ref, ...props }) {
7577
return <input ref={ref} {...props} />;
7678
}

0 commit comments

Comments
 (0)