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: https://www.udemy.com/course/full-stack-java-development-with-spring-boot-react/?referralCode=86222EF6D33E4738963E
React JS Tutorial Playlist: https://youtube.com/playlist?list=PLGRDMO4rOGcP7g6vOaLhS7WxVV9ypao08&si=cO58tGokoNxzX75s
Continue this lesson in the app
Install CourseHive on Android or iOS to keep learning while you move.