Changing pages now happens via Link, directory has gotten a layout change with app becoming a starting point and every page requireing their own .tsx and .css file. Components have also been added where reocurring componennts can be made and reapplied in the project. ref: N25B-96
17 lines
354 B
TypeScript
17 lines
354 B
TypeScript
import { Routes, Route } from 'react-router'
|
|
import './App.css'
|
|
import TemplatePage from './pages/TemplatePage/Template.tsx'
|
|
import Home from './pages/Home/Home.tsx'
|
|
|
|
function App(){
|
|
|
|
return (
|
|
<Routes>
|
|
<Route path="/" element={<Home />} />
|
|
<Route path="/Template" element={<TemplatePage />} />
|
|
</Routes>
|
|
)
|
|
}
|
|
|
|
export default App
|