From 6fbfd696990e77020a3d7359fdcbc3e01de40a60 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sun, 20 Jun 2021 17:38:55 -0700 Subject: Rename CSS stress test Former-commit-id: cbb6f8b1a94e504cce875f90b45416177c9ac1d3 --- .../src/components/button.tsx | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 demos/react-fast-refresh-test/src/components/button.tsx (limited to 'demos/react-fast-refresh-test/src/components/button.tsx') diff --git a/demos/react-fast-refresh-test/src/components/button.tsx b/demos/react-fast-refresh-test/src/components/button.tsx new file mode 100644 index 000000000..3f55fae34 --- /dev/null +++ b/demos/react-fast-refresh-test/src/components/button.tsx @@ -0,0 +1,37 @@ +import React from "react"; +import { NewComponent } from "./new-comp"; + +const Toast = () => { + const [baconyes, baconno] = useBacon(); + return
false
; +}; +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 ( +
+ f +
{label}12
+ +
+ ); +}; + +const Bacon = Button; + +export { Bacon, Bacon as Button }; + +const RefreshLike = () => {}; + +const useBacon = () => { + return [1, 8]; +}; -- cgit v1.2.3