Skip to content

Commit

Permalink
Update the React 18 documentation (#32896)
Browse files Browse the repository at this point in the history
Currently you don't need to enable `concurrentFeatures` to start using React 18, this PR makes the docs more clear on that.

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
  • Loading branch information
shuding committed Dec 29, 2021
1 parent 3ca8ce0 commit ec2e107
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/advanced-features/react-18.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Ensure you have the `rc` npm tag of React installed:
npm install next@latest react@rc react-dom@rc
```

That's all! You can now start using React 18's new APIs like `startTransition` and Suspense in Next.js.

### Enable SSR Streaming (Alpha)

Concurrent features in React 18 include built-in support for server-side Suspense and SSR streaming support, allowing you to server-render pages using HTTP streaming.
Expand Down

0 comments on commit ec2e107

Please sign in to comment.