26 lines
724 B
JavaScript
26 lines
724 B
JavaScript
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
|
|
import { BrowserRouter, Routes, Route } from 'react-router-dom';
|
|
import Landing from '/src/landing/Landing.jsx'
|
|
import PageView from '/src/page/PageView.jsx'
|
|
import PageEdit from '/src/page/PageEdit.jsx'
|
|
|
|
import './App.css'
|
|
|
|
const queryClient = new QueryClient();
|
|
|
|
function App() {
|
|
return (
|
|
<QueryClientProvider client={queryClient}>
|
|
<BrowserRouter>
|
|
<Routes>
|
|
<Route path="/" element={<Landing/>}/>
|
|
<Route path="/:pagenumber" element={<PageView/>}/>
|
|
<Route path="/:pagenumber/edit" element={<PageEdit/>}/>
|
|
</Routes>
|
|
</BrowserRouter>
|
|
</QueryClientProvider>
|
|
);
|
|
}
|
|
|
|
export default App;
|