React Events. ❮ Previous Next ❯ ... onClick={shoot} instead of onClick="shoot()" . ... return ( <button onClick={shoot}>Take the shot!
確定! 回上一頁