React Event Handling: Making Your App Come Alive (With Real-World Examples)
When I first switched from vanilla JavaScript to React, I remember trying to create a button that showed an alert on click. I wrote the usual:
<button onclick="myFunction()">Click Me</button>
...and it didn’t work.
React threw an error. That’s when ...
shivamgoswami.hashnode.dev5 min read