From 7bbd1050c0cd024cfa50f35a0dc8376dc2a7a93a Mon Sep 17 00:00:00 2001 From: Luka Hartwig Date: Mon, 14 Mar 2022 20:01:56 +0100 Subject: [PATCH] Server component docs use wrong next version 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. --- docs/advanced-features/react-18/server-components.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced-features/react-18/server-components.md b/docs/advanced-features/react-18/server-components.md index dea51f2014fd..be4cea72957c 100644 --- a/docs/advanced-features/react-18/server-components.md +++ b/docs/advanced-features/react-18/server-components.md @@ -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`: