// src/App.jsx
import { useState } from "react";
function Counter() {
const [count, setCount] = useState(0);
return (
Count: {count}
);
}
function App() {
return ;
}
export default App;
/*
Notes:
- All three buttons call the same setCount setter, just with
different new values each time.
- Reset simply calls setCount(0) directly, the same as setting
state to any other known fixed value.
*/