generated from lucien/api-template
Added basic frontend
This commit is contained in:
parent
eb0136097e
commit
ae1fea3790
12 changed files with 411 additions and 155 deletions
|
@ -1,10 +1,15 @@
|
|||
import { StrictMode } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import { BrowserRouter, Routes, Route } from 'react-router-dom'
|
||||
import './index.css'
|
||||
import App from './App.tsx'
|
||||
|
||||
import Home from './pages/Home'
|
||||
import Channel from './pages/Channel'
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>,
|
||||
<BrowserRouter>
|
||||
<Routes>
|
||||
<Route path="/" element={<Home />} />
|
||||
<Route path="/channels/:id" element={<Channel />} />
|
||||
</Routes>
|
||||
</BrowserRouter>
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue