With JSX you pass a function as the event handler, rather than a string. For example, the HTML: <button onclick="activateLasers()"> Activate Lasers </button>.
確定! 回上一頁