That's what the useState hook is for. ... Calling useState returns a value and its updater function in an array with two elements, as shown in figure 2.11.
確定! 回上一頁