From cbb6f8b1a94e504cce875f90b45416177c9ac1d3 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sun, 20 Jun 2021 17:38:55 -0700 Subject: Rename CSS stress test --- demos/react-fast-refresh-test/src/index.tsx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 demos/react-fast-refresh-test/src/index.tsx (limited to 'demos/react-fast-refresh-test/src/index.tsx') diff --git a/demos/react-fast-refresh-test/src/index.tsx b/demos/react-fast-refresh-test/src/index.tsx new file mode 100644 index 000000000..3db53a67f --- /dev/null +++ b/demos/react-fast-refresh-test/src/index.tsx @@ -0,0 +1,20 @@ +import ReactDOM from "react-dom"; +import React from "react"; +import { Main } from "./main"; +import classNames from "classnames"; + +const Base = ({}) => { + const name = decodeURIComponent(location.search.substring(1)); + return
; +}; + +function startReact() { + ReactDOM.render(, document.querySelector("#reactroot")); +} + +globalThis.addEventListener("DOMContentLoaded", () => { + startReact(); +}); +startReact(); + +export { Base }; -- cgit v1.2.3