Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(examples): Updated create-react-app example to use react-router…
…-dom v6
- Loading branch information
Showing
10 changed files
with
23 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Routes, Route } from 'react-router-dom'; | ||
|
||
import Layout from './components/Layout'; | ||
import Home from './components/Home'; | ||
import Route1 from './components/Route1'; | ||
|
||
export default function App() { | ||
return ( | ||
<Layout> | ||
<Routes> | ||
<Route path="/" element={<Home />} /> | ||
<Route path="route-1" element={<Route1 />} /> | ||
</Routes> | ||
</Layout> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 5 additions & 4 deletions
9
examples/create-react-app/src/index.jsx → examples/create-react-app/src/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters