set Counter(counter => counter + 1);. And then you are representing your state somewhere in your UI. return ( <div className="App ...
確定! 回上一頁