DEV Community

Discussion on: Tired of Guessing What 'this' Is Referring To?

 
kadajett profile image
Jeremy Stover

While the react community is moving towards functional components, most companies still use class based components. I guess you could just use anon functions in the class, but then you lose the ability to see the name while debugging, unless you do a bunch of extra code.