A

Admin • 833.24K Points
Coach

Q. What is the correct way to handle events in React?

  • (A) Use camelCase event handlers, e.g., onClick
  • (B) Use lowercase event handlers, e.g., onclick
  • (C) Attach events directly to DOM elements using addEventListener
  • (D) Events cannot be handled in React
  • Correct Answer - Option(A)
  • Views: 20
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin

React uses camelCase syntax for event handlers.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.