This is a basic hands-on exericse intended to familiarize users with the React Router.
To get started,
- Clone the repo: git clone https://github.com/GautamSatish/react_router_demo.git
- Install the dependencies: npm install
- Start the webpack dev server: npm run dev
This should launch your app at http://localhost:9000/
To complete the exercise, you will need to update the code in the following places:
- src/MainMenu.jsx: Setup the Links as per the instruction in the source file.
- src/MainPanel.jsx: Setup the Switch with the Routes.
- src/Others.jsx, src/OthersMenu.jsx: Follow the same instructions.
A sample solution is present on the branch sample_solution.