Set value of state to clicked button's value

后端 未结 0 1017
借酒劲吻你
借酒劲吻你 2020-12-08 11:55

I am trying to have my state be set to which of 2 buttons the user presses.

 const [pizzaSize, setPizzaSize] = useState(null);
const changePizza          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题