snowballtools-base/packages/frontend/src/App.tsx

20 lines
374 B
TypeScript
Raw Normal View History

import React from 'react';
import { createBrowserRouter, RouterProvider } from 'react-router-dom';
import Home from './pages';
import { homeRoutes } from './pages/routes';
const router = createBrowserRouter([
{
path: '/',
element: <Home />,
children: homeRoutes,
},
]);
function App() {
return <RouterProvider router={router} />;
}
export default App;