From 5db15b6ec7cd41cc15214f4448b064f4dd11f974 Mon Sep 17 00:00:00 2001
From: Jarred Sumner <jarred@jarredsumner.com>
Date: Fri, 20 Aug 2021 13:17:57 -0700
Subject: demos -> examples

Former-commit-id: 19a5d395bd41b0a0b854cdf749eb96149f91cbe1
---
 examples/css-stress-test/src/components/button.tsx | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 examples/css-stress-test/src/components/button.tsx

(limited to 'examples/css-stress-test/src/components/button.tsx')

diff --git a/examples/css-stress-test/src/components/button.tsx b/examples/css-stress-test/src/components/button.tsx
new file mode 100644
index 000000000..7d7b6623e
--- /dev/null
+++ b/examples/css-stress-test/src/components/button.tsx
@@ -0,0 +1,27 @@
+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>
+  );
+};
-- 
cgit v1.2.3

