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 ...
Markdown supported · ⌘↵ to post
No responses yet.