Get elements by class name using React functional components


Hi I would like to know how you can access element in the DOM by classname using React. Apparently document.getElementsByClassName doesn’t work.

Source: React – Stack Overflow

November 21, 2021
Category : News
Tags: classname | DOM | reactjs

Leave a Reply

Your email address will not be published. Required fields are marked *

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.