Also, the reducer returns an array of 2 items: the current state and the dispatch function. When you'd like to update the state, simply call ...
確定! 回上一頁