aboutsummaryrefslogtreecommitdiff
path: root/demos/css-stress-test/src
diff options
context:
space:
mode:
Diffstat (limited to 'demos/css-stress-test/src')
-rw-r--r--demos/css-stress-test/src/components/button.tsx10
-rw-r--r--demos/css-stress-test/src/index.tsx6
2 files changed, 4 insertions, 12 deletions
diff --git a/demos/css-stress-test/src/components/button.tsx b/demos/css-stress-test/src/components/button.tsx
index 3f55fae34..7d7b6623e 100644
--- a/demos/css-stress-test/src/components/button.tsx
+++ b/demos/css-stress-test/src/components/button.tsx
@@ -25,13 +25,3 @@ const Button = ({ label, label2, onClick }) => {
</div>
);
};
-
-const Bacon = Button;
-
-export { Bacon, Bacon as Button };
-
-const RefreshLike = () => {};
-
-const useBacon = () => {
- return [1, 8];
-};
diff --git a/demos/css-stress-test/src/index.tsx b/demos/css-stress-test/src/index.tsx
index 9c317fc08..c9ec51a7e 100644
--- a/demos/css-stress-test/src/index.tsx
+++ b/demos/css-stress-test/src/index.tsx
@@ -1,5 +1,7 @@
import { Main } from "./main";
import classNames from "classnames";
+import * as ReactDOM from "react-dom";
+
const Base = ({}) => {
const name =
typeof location !== "undefined"
@@ -9,7 +11,6 @@ const Base = ({}) => {
};
function startReact() {
- const ReactDOM = require("react-dom");
ReactDOM.render(<Base />, document.querySelector("#reactroot"));
}
@@ -21,8 +22,9 @@ if (typeof window !== "undefined") {
startReact();
} else {
- const ReactDOMServer = require("react-dom/server.browser");
console.log(ReactDOMServer.renderToString(<Base />));
}
export { Base };
+
+