This is because JavaScript inside the JSX { and } executes right away. ... It passes that prop directly to the built-in browser <button> with onClick={onClick} .
確定! 回上一頁