first commit
This commit is contained in:
commit
5ada72873f
30 changed files with 1286 additions and 0 deletions
26
src/index.js
Normal file
26
src/index.js
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
// React
|
||||
import {createRoot} from 'react-dom/client'
|
||||
import {
|
||||
HashRouter,
|
||||
Routes,
|
||||
Route} from "react-router-dom";
|
||||
import React from "react";
|
||||
|
||||
// Components
|
||||
import App from './components/App'
|
||||
|
||||
// Routes
|
||||
import Settings from "./routes/settings";
|
||||
|
||||
// entry index.html is managed by webpack via HtmlWebpackPlugin
|
||||
|
||||
const container = document.getElementById('root');
|
||||
const root = createRoot(container);
|
||||
root.render(
|
||||
<HashRouter>
|
||||
<Routes>
|
||||
<Route path='/' element={<App />} />
|
||||
<Route path='settings' element={<Settings />} />
|
||||
</Routes>
|
||||
</HashRouter>
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue