Ivy-Frontend/src/App.tsx

18 lines
385 B
TypeScript
Raw Normal View History

2023-02-13 22:11:25 +08:00
import React from "react";
import Dashboard from "./routes/Dashboard/Dashboard";
import { createBrowserRouter, RouterProvider } from "react-router-dom";
const router = createBrowserRouter([
{
path: "/",
element: <Dashboard />,
},
]);
2023-02-13 22:49:32 +08:00
export default function App() {
return (
<React.StrictMode>
<RouterProvider router={router} />
</React.StrictMode>
);
}