Skip to content

Commit

Permalink
Server component docs use wrong next version (#35313)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lukahartwig committed Mar 21, 2022
1 parent 92da36f commit af95b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/advanced-features/react-18/server-components.md
Expand Up @@ -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`:
Expand Down

0 comments on commit af95b0c

Please sign in to comment.