In this lecture, we will learn how to handle events in React applications.
Handling events with React elements is similar to handling events on DOM elements. There are a few differences, though.
- React events are named using camelCase, rather than lowercase — onClick instead of onclick.
- We write React event handlers inside curly braces.
- In the case of React(/JSX), rather than passing a string, we pass a function as the event handler. onClick={buttonClicked} instead of onclick=”buttonClicked()”.
Udemy course: [NEW] Full-Stack Java Development with Spring Boot 3 & React
Course link:
React JS Tutorial Playlist: