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/src/main.jsx | |
| parent | 6032e3533fa01cb722d750db13419406da344ae0 (diff) | |
Added React Router sample app
Diffstat (limited to 'react/07-react-router/src/main.jsx')
| -rw-r--r-- | react/07-react-router/src/main.jsx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/react/07-react-router/src/main.jsx b/react/07-react-router/src/main.jsx new file mode 100644 index 0000000..5887fb5 --- /dev/null +++ b/react/07-react-router/src/main.jsx @@ -0,0 +1,13 @@ +import { StrictMode } from 'react' +import { createRoot } from 'react-dom/client' +import { BrowserRouter} from "react-router"; +import './index.css' +import App from './App.jsx'; + +createRoot(document.getElementById('root')).render( + <StrictMode> + <BrowserRouter> + <App /> + </BrowserRouter> + </StrictMode>, +)
\ No newline at end of file |
