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:
parent
92da36f1e0
commit
af95b0cb8d
1 changed files with 1 additions and 1 deletions
|
@ -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`:
|
||||
|
|
Loading…
Reference in a new issue