示例工程 21-keyboard-focus-a11y

21-keyboard-focus-a11y/app/src/main.tsx

tsx · 0.3 KB

import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import App from "./App";
import "./styles/globals.css";

const root = document.getElementById("root");
if (!root) throw new Error("missing #root");

createRoot(root).render(
  <StrictMode>
    <App />
  </StrictMode>,
);