-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: route without auth redirect to 404
- Loading branch information
1 parent
663a153
commit e41c300
Showing
4 changed files
with
214 additions
and
214 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
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,9 +1,14 @@ | ||
import React from 'react' | ||
import './index.less' | ||
import { createRoot } from 'react-dom/client' | ||
import { BrowserRouter as Router } from 'react-router-dom' | ||
|
||
import App from './app' | ||
|
||
const container = document.getElementById('root') | ||
const root = createRoot(container!) // createRoot(container!) if you use TypeScript | ||
root.render(<App />) | ||
root.render( | ||
<Router> | ||
<App /> | ||
</Router>, | ||
) |
Oops, something went wrong.