diff options
| author | Kamal Wickramanayake <kamal@inbox.lk> | 2026-07-01 20:41:10 +0530 |
|---|---|---|
| committer | Kamal Wickramanayake <kamal@inbox.lk> | 2026-07-01 20:41:10 +0530 |
| commit | 282a6af67b7ab8cce02f9c1e517008fbd775cf93 (patch) | |
| tree | bbe9ca9a6b7808b55282860f5e3d25856afbb8e5 /react/07-react-router/README.md | |
| parent | 6032e3533fa01cb722d750db13419406da344ae0 (diff) | |
Added React Router sample app
Diffstat (limited to 'react/07-react-router/README.md')
| -rw-r--r-- | react/07-react-router/README.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/react/07-react-router/README.md b/react/07-react-router/README.md new file mode 100644 index 0000000..707aab3 --- /dev/null +++ b/react/07-react-router/README.md @@ -0,0 +1,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
\ No newline at end of file |
