Security Risks of Inline Event Handlers in React.js (And How to Avoid Them)
If you’re a React.js developer, chances are you’ve dropped an inline event handler into your code without even thinking twice. It’s so easy to do! You might write something like this:
<button onClick={() => alert('You clicked me!')}>Click Me</button>...