With JSX you pass a function as the event handler, rather than a string. For example, the HTML: ... In JavaScript, class methods are not bound by default.
確定! 回上一頁