How do i use AddEventListener in React

Post Reply
User avatar
Administrator
Site Admin
Posts: 1627
Joined: Thu Mar 22, 2018 10:19 am

How do i use AddEventListener in React

Post by Administrator » Thu Feb 13, 2020 12:04 pm

I think the best place to add multiple events, is the componentDidMount of the component by triggering an event. Then looking in the event.target for the id. this will allow other classes to add functionality to the element.

Post Reply