onClick = {someFunction} vs onClick = {()=>{someFunction()}}
Share

In JS, we write the event in smallcase like onclick. But, here in React, we follow camel case as in onClick. The concept we are about to…

 

{someFunction()}}” /> In JS, we write the event in smallcase like onclick. But, here in React, we follow camel case as in onClick. The concept we are about to…Continue reading on Medium » Read More JavaScript on Medium 

#java

By