setState({ count: this.state.count + 1 })}> Click me </button> </div> ); } }. State 從 { count: 0 } 開始,當使用者點擊按鈕時,我們藉由呼叫 this.
確定! 回上一頁