FrontendDeveloper.in

React question detail

How events are different in React?

Handling events in React elements has some syntactic differences:

  1. React event handlers are named using camelCase, rather than lowercase.
  2. With JSX you pass a function as the event handler, rather than a string.
Back to all React questions
Get LinkedIn Premium at Rs 399