Skip to content

Commit 76fccdb

Browse files
authored
Remove VFC recommendation (#506)
1 parent ab622cc commit 76fccdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/basic/getting-started/function-components.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const Title: React.FunctionComponent<{ title: string }> = ({
6161
In [@types/react 16.9.48](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/46643), the `React.VoidFunctionComponent` or `React.VFC` type was added for typing `children` explicitly.
6262
However, please be aware that `React.VFC` and `React.VoidFunctionComponent` were deprecated in React 18 (https://github.com/DefinitelyTyped/DefinitelyTyped/pull/59882), so this interim solution is no longer necessary or recommended in React 18+.
6363

64-
Please use regular function components or `React.VFC` instead.
64+
Please use regular function components or `React.FC` instead.
6565

6666
```ts
6767
type Props = { foo: string };

0 commit comments

Comments
 (0)