aboutsummaryrefslogtreecommitdiff
path: root/examples/react-fast-refresh-test/src/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'examples/react-fast-refresh-test/src/index.tsx')
-rw-r--r--examples/react-fast-refresh-test/src/index.tsx15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/react-fast-refresh-test/src/index.tsx b/examples/react-fast-refresh-test/src/index.tsx
new file mode 100644
index 000000000..348bd80f2
--- /dev/null
+++ b/examples/react-fast-refresh-test/src/index.tsx
@@ -0,0 +1,15 @@
+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 };