How to access custom attributes from event object in React?

Posted by Jennifer | Updated on

Want to access custom attributes from event object in React? To help you get the desired outcome in perhaps a different way than you asked:

Notice the bind() Because this is all javascript, you can do handy things like that. We no longer need to attach data to DOM nodes in order to keep track of them.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers