Server component docs use wrong next version (#35313)

The docs for the react server components preview refer refer to `next@latest` which doesn't work. The linked demo uses `canary` so I replaced it in the install command.
This commit is contained in:
Luka Hartwig 2022-03-22 00:54:43 +01:00 committed by GitHub
parent 92da36f1e0
commit af95b0cb8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@ Server Components allow us to render React components on the server. This is fun
To use React Server Components, ensure you have React 18 installed:
```jsx
npm install next@latest react@rc react-dom@rc
npm install next@canary react@rc react-dom@rc
```
Then, update your `next.config.js`: