mirror of
https://github.com/ershisan99/flashcards-example-project.git
synced 2025-12-18 05:09:23 +00:00
add store and base api
This commit is contained in:
14
src/router.tsx
Normal file
14
src/router.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { createBrowserRouter, RouteObject, RouterProvider } from 'react-router-dom'
|
||||
|
||||
const routes: RouteObject[] = [
|
||||
{
|
||||
path: '/',
|
||||
element: <div>hello</div>,
|
||||
},
|
||||
]
|
||||
|
||||
const router = createBrowserRouter(routes)
|
||||
|
||||
export const Router = () => {
|
||||
return <RouterProvider router={router} />
|
||||
}
|
||||
Reference in New Issue
Block a user