javascript
function과 function()의 차이, onclikc=function과 onclick=function()의 차이
https://stackoverflow.com/questions/42178136/when-to-call-function-vs-function-in-react-onclick When to call function vs function() in react onClick? I'm having questions about when to call a function inside a react component. Sometimes my code breaks when I don't add the brackets to a function call, but not always. Is there some sort of rule i'm stackoverflow.com ()가 없으면 함수를 참조하는 것, ()가 붙으면 참조한..