QuickDevGuide

Home › React

Events — React

React events are named using camelCase, rather than lowercase. With JSX you pass a function as the event handler, rather than a string. Event Handlers You can trigger logic on onClick, onChange, onSubmit, and more. When passing arguments to event handlers, ensure you use an arrow function to prevent the function from firing immediately when the component renders.

Key Takeaways