diff options
| author | Pinapelz <yukais@pinapelz.com> | 2026-06-05 22:08:51 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-06-05 22:08:51 -0700 |
| commit | cfc9cd8c7770ddc8f151610acd177e54169e28d7 (patch) | |
| tree | fcdc6d1b06966bef5198320ccd42e5a2aa1eea48 /src/index.tsx | |
| parent | 16d92646308a65224784a9a9fdccd6f69d02955e (diff) | |
feat: historical stats tracking, chart
Diffstat (limited to 'src/index.tsx')
| -rw-r--r-- | src/index.tsx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/index.tsx b/src/index.tsx index e1b6a22..c4a2bfc 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,15 +1,18 @@ import React from "react"; -import ReactDOM from "react-dom"; +import ReactDOM from "react-dom/client"; import { ThemeProvider } from "styled-components"; import { theme } from "./constants"; import "./index.css"; import App from "./app"; -ReactDOM.render( +const root = ReactDOM.createRoot( + document.getElementById("root") as HTMLElement +); + +root.render( <React.StrictMode> <ThemeProvider theme={theme}> <App /> </ThemeProvider> </React.StrictMode>, - document.getElementById("root") ); |
