From 594c7b180589c2b62b86f23085ac640a73f9397d Mon Sep 17 00:00:00 2001
From: Yuval Adam <_@yuv.al>
Date: Fri, 23 May 2025 14:56:02 +0200
Subject: Add react counter component

---
 src/components/Counter.jsx | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 src/components/Counter.jsx

(limited to 'src/components/Counter.jsx')

diff --git a/src/components/Counter.jsx b/src/components/Counter.jsx
new file mode 100644
index 0000000..a2ae7c3
--- /dev/null
+++ b/src/components/Counter.jsx
@@ -0,0 +1,13 @@
+import { useState } from 'react';
+
+export default function Counter() {
+  const [count, setCount] = useState(0);
+
+  return (
+    <div className="counter">
+      <button onClick={() => setCount(count + 1)}>
+        Clicked {count} times
+      </button>
+    </div>
+  );
+}
-- 
cgit v1.3.1

