server/assets/js/react/App.tsx

26 lines
516 B
TypeScript
Raw Normal View History

2023-12-02 14:21:05 +00:00
import * as React from "react";
import { RouterProvider, createBrowserRouter } from "react-router-dom";
2023-12-02 14:21:05 +00:00
import { Footer } from "./components/Footer";
2023-12-01 19:56:14 +00:00
const router = createBrowserRouter([
{
path: "/",
element: <Footer />, // Placeholder.
},
{
path: "/nested",
element: <Footer />, // Placeholder.
},
]);
2023-12-01 19:56:14 +00:00
export default function App() {
return (
<div>
<main className="w-full flex-auto">
<RouterProvider router={router} />
</main>
2023-12-02 14:21:05 +00:00
<Footer />
2023-12-01 19:56:14 +00:00
</div>
2023-12-02 14:21:05 +00:00
);
2023-12-01 19:56:14 +00:00
}