mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
16 lines
339 B
TypeScript
16 lines
339 B
TypeScript
import ReactDOM from "react-dom";
|
|
import React from "react";
|
|
import { App } from "./components/app";
|
|
import classNames from "classnames";
|
|
|
|
function startReact() {
|
|
ReactDOM.render(<App />, document.querySelector("#reactroot"));
|
|
}
|
|
|
|
globalThis.addEventListener("DOMContentLoaded", () => {
|
|
startReact();
|
|
});
|
|
startReact();
|
|
|
|
export { App };
|