react18-tools/react-mouse-trail

View on GitHub
examples/vite/src/main.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from "react";
import { createRoot } from "react-dom/client";
import App from "./app";
import "./index.css";

const el = document.getElementById("root");
if (el) {
  const root = createRoot(el);
  root.render(
    <React.StrictMode>
      <App />
    </React.StrictMode>,
  );
} else {
  throw new Error("Could not find root element");
}