diff options
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/App.tsx | 8 | ||||
| -rw-r--r-- | src/client/index.tsx | 2 | ||||
| -rw-r--r-- | src/client/main.tsx | 14 |
3 files changed, 23 insertions, 1 deletions
diff --git a/src/client/App.tsx b/src/client/App.tsx new file mode 100644 index 0000000..fa42302 --- /dev/null +++ b/src/client/App.tsx @@ -0,0 +1,8 @@ +export function App() { + return ( + <div> + <h1>Kioku</h1> + <p>Spaced repetition learning app</p> + </div> + ); +} diff --git a/src/client/index.tsx b/src/client/index.tsx index cb0ff5c..713869c 100644 --- a/src/client/index.tsx +++ b/src/client/index.tsx @@ -1 +1 @@ -export {}; +export { App } from "./App"; diff --git a/src/client/main.tsx b/src/client/main.tsx new file mode 100644 index 0000000..1e185be --- /dev/null +++ b/src/client/main.tsx @@ -0,0 +1,14 @@ +import { StrictMode } from "react"; +import { createRoot } from "react-dom/client"; +import { App } from "./App"; + +const rootElement = document.getElementById("root"); +if (!rootElement) { + throw new Error("Root element not found"); +} + +createRoot(rootElement).render( + <StrictMode> + <App /> + </StrictMode>, +); |
