Welcome back.
Before we get into code, let's have a look at some of the rules when it comes to handling events in
React.
There are three important rules that you should remember when handling events in React.
And the first one is that React events are named using camel case than using the lower case.
The next point is that you pass a function as the event handler rather than a string and we will demo
that.
Next one is you should never call such dates inside an event handler because we haven't talked about
managing states using you.
State Don't worry about this technical term here.
We will postpone it and dive in details in the upcoming ones.
The next one going to be the event handling function should be a pure function.
I mean, meaning that this means that it should not modify the component state or make any API calls.
So you talk about it very soon.
So these are the common I mean, event handling rules.
You need to bear in mind the next video we talk about some of the event types that we can use in React
and then we move forward and demo more what you talk about.