const [count, setCount] = useState(0);
const [step, setStep] = useState(1);
const handleIncrement = () => {
setCount(c => c + step);
const handleDecrement = () => {
setCount(c => Math.max(0, c - step));
const handleReset = () => {
// ... JSX 中绑定这些函数和 step 输入框