-
Notifications
You must be signed in to change notification settings - Fork 391
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from react-router v6 to wouter
- react-router doesn't support getting unencoded path params, and we need that for parsing specs: remix-run/react-router#7173 (comment) - wouter supports regexes in paths, so we can actually do validation in the routing layer itself - react-router v7 is out, and we would have had to do a migration anyway.
- Loading branch information
Showing
4 changed files
with
33 additions
and
34 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 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 |
---|---|---|
@@ -1,10 +1,5 @@ | ||
import { createRoot } from "react-dom/client"; | ||
import { BrowserRouter } from "react-router-dom"; | ||
import { App } from "./App"; | ||
|
||
const root = createRoot(document.getElementById("root")); | ||
root.render( | ||
<BrowserRouter> | ||
<App /> | ||
</BrowserRouter>, | ||
); | ||
root.render(<App />); |
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