DEV Community

Cover image for Understanding "this" in React

Understanding "this" in React

Akhila Ariyachandra on July 26, 2019

PS - This was originally post in my blog. Check it out if you want learn more about React and JavaScript! this in JavaScript can confusing as it...
Collapse
 
macsikora profile image
Pragmatic Maciej

I didn't know React I a language ;) . The title is or a click bait or you try to create a confusion for devs who learn JS and React.

I can answer how this works in React in rhe one line:
It works like in JavaScript

Collapse
 
michaeljota profile image
Michael De Abreu

In his defense, people doesn't want to learn JS, just React or Vue or _Angular, or whatever they are using. :/.