Professional Documents
Culture Documents
18 - Events and Event Handling
18 - Events and Event Handling
Event
Button Click Event Handling
dblclick
{
mouseover Line no 1
Event Handler
mouseout Line no 2
Line no 3
Page load
}
What is an Event ? REACT
• Events are actions or occurrences that happen in the system you are
programming, which the system tells you about so your code can react
to them.
• Most often user of a website generates events.
React Events REACT
• Just like HTML DOM events, React can perform actions based on user
events.
• React has the same events as HTML: click, change, mouseover etc.
Adding Events REACT