mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-28 11:17:33 +00:00

Also allows us to use absolute import paths (see change in index.tsx). Updates tailscale/corp#13775 Signed-off-by: Sonia Appasamy <sonia@tailscale.com>
17 lines
351 B
TypeScript
17 lines
351 B
TypeScript
import React from "react"
|
|
import { createRoot } from "react-dom/client"
|
|
import App from "src/components/app"
|
|
|
|
const rootEl = document.createElement("div")
|
|
rootEl.id = "app-root"
|
|
rootEl.classList.add("relative", "z-0")
|
|
document.body.append(rootEl)
|
|
|
|
const root = createRoot(rootEl)
|
|
|
|
root.render(
|
|
<React.StrictMode>
|
|
<App />
|
|
</React.StrictMode>
|
|
)
|