FrostByte/client-solid/src/Primary.tsx

14 lines
369 B
TypeScript
Raw Normal View History

2023-10-21 08:51:33 +02:00
import { Route, Routes } from "@solidjs/router";
import { Posts } from "./Posts";
import { NewPostInputArea } from "./Root";
// Primary is the section of the page that holds the main content
export function Primary() {
return (
<Routes>
<Route path="/" element={<Posts />} />
<Route path="/new" element={<NewPostInputArea />} />
</Routes>
);
}