aboutsummaryrefslogtreecommitdiff
path: root/examples/react-fast-refresh-test/src/components/button.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'examples/react-fast-refresh-test/src/components/button.tsx')
-rw-r--r--examples/react-fast-refresh-test/src/components/button.tsx9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/react-fast-refresh-test/src/components/button.tsx b/examples/react-fast-refresh-test/src/components/button.tsx
new file mode 100644
index 000000000..4c3388670
--- /dev/null
+++ b/examples/react-fast-refresh-test/src/components/button.tsx
@@ -0,0 +1,9 @@
+import { RenderCounter } from "./RenderCounter";
+
+export const Button = ({ children }) => {
+ return (
+ <RenderCounter name="Button">
+ <div className="Button">{children}</div>
+ </RenderCounter>
+ );
+};