structure

This commit is contained in:
Morph01
2024-02-10 19:31:41 +01:00
parent fd249b3fc1
commit 2a1ae41d74
2 changed files with 33 additions and 0 deletions

23
src/App.js Normal file
View File

@@ -0,0 +1,23 @@
import "./App.css";
import React from "react";
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
import Home from "./Pages/Home/Homescreen";
import Navbar from "./Pages/Home/Navbar";
function App() {
return (
<div className="App">
<Router>
<div>
<Navbar />
<Routes>
<Route path="/" element={<Home />}></Route>
<Route path="*" element={<div>404 Not Found</div>}></Route>
</Routes>
</div>
</Router>
</div>
);
}
export default App;

10
src/index.js Normal file
View File

@@ -0,0 +1,10 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);