React & Tailwind CSS Starter Pack
-This is a starter pack for React & Tailwind CSS projects.
-diff --git a/src/App.jsx b/src/App.jsx
index 56d5c344..848c36f6 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -1,12 +1,31 @@
+import { useState } from "react";
import "./App.css";
function App() {
+
+ //let count = 0;
+ const [count,setCount] = useState(0);
+
+ function decrementHandler(){
+ //count = count-1;
+ setCount(count-1);
+ }
+ function incrementHandler(){
+ setCount(count+1);
+ }
+ function resetHandler(){
+ setCount(0);
+ }
return (
- This is a starter pack for React & Tailwind CSS projects.React & Tailwind CSS Starter Pack
-
-