From a7a30f84e3ae15f62084ebcf58f9a949fd86b43d Mon Sep 17 00:00:00 2001 From: Yaman KATBY Date: Mon, 4 Apr 2022 16:17:00 +0300 Subject: [PATCH] Update adding-a-router.md Update React Router links to v6 --- docusaurus/docs/adding-a-router.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docusaurus/docs/adding-a-router.md b/docusaurus/docs/adding-a-router.md index 3dda1baac86..9d5a4cb0e9c 100644 --- a/docusaurus/docs/adding-a-router.md +++ b/docusaurus/docs/adding-a-router.md @@ -3,12 +3,12 @@ id: adding-a-router title: Adding a Router --- -Create React App doesn't prescribe a specific routing solution, but [React Router](https://reacttraining.com/react-router/web/) is the most popular one. +Create React App doesn't prescribe a specific routing solution, but [React Router](https://reactrouter.com/) is the most popular one. To add it, run: ```sh -npm install --save react-router-dom +npm install react-router-dom ``` Alternatively you may use `yarn`: @@ -17,6 +17,6 @@ Alternatively you may use `yarn`: yarn add react-router-dom ``` -To try it, delete all the code in `src/App.js` and replace it with any of the examples on its website. The [Basic Example](https://reacttraining.com/react-router/web/example/basic) is a good place to get started. +To try it, delete all the code in `src/App.js` and replace it with any of the examples on its website. The [Basic Example](https://reactrouter.com/docs/examples/basic) is a good place to get started. Note that [you may need to configure your production server to support client-side routing](deployment.md#serving-apps-with-client-side-routing) before deploying your app.