Sign in
Log inSign up

Using addEventListener / onClick inside a React Component

Arjun S Kumar's photo
Arjun S Kumar
·Oct 7, 2016

Hey,

I'm just trying to understand the differences between Vanilla JS addEventListener and the onClick method provided by React for use in a React component.

I'd like to know more in detail about how the event is registered and how it is bubbled and performance in both cases.

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct