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:
In his defense, people doesn't want to learn JS, just React or Vue or _Angular, or whatever they are using. :/.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.