summaryrefslogtreecommitdiff
path: root/react/07-react-router/README.md
blob: 707aab3aad3349f9b8b4a5b84e20a7738e9dd3bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# React Router

This sample project illustrates using the declarative mode of React Router.

Reference: https://reactrouter.com/start/declarative/installation

## Install

npm install react-router

Look at src/main.jsx, src/App.jsx

## Running json-server during development (To serve test data via http)

dev/db.json file contains test data. To start the json-server:

cd dev
npx json-server db.json