trying stuff with electron forge but moving away

This commit is contained in:
talksik
2022-03-15 13:21:45 -04:00
parent 381eb9ce2f
commit ef72bc3158
14 changed files with 194 additions and 22 deletions
+13 -3
View File
@@ -1,13 +1,23 @@
import * as React from "react";
import * as ReactDOM from "react-dom";
import { HashRouter, Route, Routes } from "react-router-dom";
import Home from "./pages/Home";
import Login from "./pages/Login";
function render() {
ReactDOM.render(
<>
<Login />
</>,
<HashRouter>
<div className="App">
<Routes>
<Route path="/" element={<Login />} />
<Route path="/home" element={<Home />} />
{/* <Route exact path="/profile/create" component={Sit} />
<Route exact path="/profile/edit" component={Sit} /> */}
</Routes>
</div>
</HashRouter>,
document.body
);
}