idev0085 / react-boilerplate

0 stars 0 forks source link

How To Use Events In Reactjs? #89

Open idev0085 opened 3 years ago

idev0085 commented 3 years ago

Handling events with React elements is very similar to handling events on DOM elements. There are some syntax differences: React events are named using camelCase, rather than lowercase. With JSX you pass a function as the event handler, rather than a string.