aboutsummaryrefslogtreecommitdiff
path: root/examples/css-stress-test/src/components/button.tsx
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-10-07 21:27:47 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-10-07 21:27:47 -0700
commitae7b91efe2076254d66d608052f4729fd34b3546 (patch)
tree1bc8f86ca8997c4801839f38326e7b3993efe651 /examples/css-stress-test/src/components/button.tsx
parent6d9ccd9b8edb149aee957b3e6c7668cc45ce7664 (diff)
downloadbun-jarred/bench.tar.gz
bun-jarred/bench.tar.zst
bun-jarred/bench.zip
Add CSS HMR benchmarkjarred/bench
Diffstat (limited to 'examples/css-stress-test/src/components/button.tsx')
-rw-r--r--examples/css-stress-test/src/components/button.tsx27
1 files changed, 0 insertions, 27 deletions
diff --git a/examples/css-stress-test/src/components/button.tsx b/examples/css-stress-test/src/components/button.tsx
deleted file mode 100644
index 7d7b6623e..000000000
--- a/examples/css-stress-test/src/components/button.tsx
+++ /dev/null
@@ -1,27 +0,0 @@
-import React from "react";
-import { NewComponent } from "./new-comp";
-
-const Toast = () => {
- const [baconyes, baconno] = useBacon();
- return <div>false</div>;
-};
-const Button = ({ label, label2, onClick }) => {
- const useCustomHookInsideFunction = (what, arr) => {
- return [true, false];
- };
- const [on, setOn] = React.useState(false);
-
- React.useEffect(() => {
- console.log({ on });
- }, [on]);
-
- // const [foo1, foo2] = useCustomHookInsideFunction(() => {}, [on]);
-
- return (
- <div className="Button" onClick={onClick}>
- <Toast>f</Toast>
- <div className="Button-label">{label}12</div>
- <NewComponent />
- </div>
- );
-};