To change a button's text on click in React: Track the text of the button in a state variable. Set the onClick prop on the button element.
確定! 回上一頁