Component { constructor(props) { super(props); this.state = { count: 0 } ... 第二個回傳的值是個可以更新 count 的function,所以我們命名為 setCount 。
確定! 回上一頁