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:
Смотрите видео React Tutorial: #14 - Event Handling онлайн без регистрации, длительностью 07 минут 17 секунд в хорошем hd качестве. Это видео добавил пользователь Java Guides 08 Август 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 500 раз и оно понравилось 19 людям.