1.

Write down the four main difference between HTML and React event handling?

Answer» WRITE down the four main difference between HTML and React event HANDLING?
Below are the four main difference between HTML and React event handling
(1)HTML:-HTML is generaly uses Lowercase.
(1)React:-React is generaly uses CamelCase.

(2)HTML:-In HTML we generaly we return false to prevent default BEHAVIOR. Below is the syntax for the same


HTML Prevent
(2)React:-In React we need to call preventDefault explicitly.


React Prevent
(3)HTML:-In HTML to understand the lowercase we have given a example. Herer we use onclick in lowercase.


HTML Click
(3)React:-In React we use camelCase and below is the example to understand this. Here we passed the function reference inside CURLY braces.


React CLick
(4)HTML:-In HTML we need INVOKE the function by appending().
(4)React:-In React we should not append()


Discussion

No Comment Found