Skip to content

Commit c5c5bce

Browse files
committed
format
1 parent c2ad294 commit c5c5bce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/basic/getting-started/basic-type-examples.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ function App() {
9494
This is because `ReactNode` includes `ReactFragment` which allows a `{}` type, which is [too wide](https://github.com/DefinitelyTyped/DefinitelyTyped/issues/37596#issue-480260937). Fixing this would break a lot of libraries, so for now you just have to be mindful that `ReactNode` is not absolutely bulletproof.
9595

9696
[Thanks @pomle for raising this.](https://github.com/typescript-cheatsheets/react/issues/357)
97-
98-
With the [React 18 type updates](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/56210), `{}` is no longer allowed in `ReactFragment`.
97+
98+
With the [React 18 type updates](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/56210), `{}` is no longer allowed in `ReactFragment`.
9999

100100
</details>
101101

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const Title: React.FunctionComponent<{ title: string }> = ({
6060
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.
6161
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+.
6262

63-
Please use regular function components or `React.VFC` instead.
63+
Please use regular function components or `React.VFC` instead.
6464

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

0 commit comments

Comments
 (0)