Unverified Commit af95b0cb authored by Luka Hartwig's avatar Luka Hartwig Committed by GitHub

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.
parent 92da36f1
...@@ -7,7 +7,7 @@ Server Components allow us to render React components on the server. This is fun ...@@ -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: To use React Server Components, ensure you have React 18 installed:
```jsx ```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`: Then, update your `next.config.js`:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment