โ๏ธ You'll be able to learn React way better if you know working with ES6.
ES6 is a scripting language for JavaScript and helps developers by making the code simple as it handles out all the limitations of the main language (JS).
๐
๐ญ. ๐ฆ๐ฐ๐ผ๐ฝ๐ฒ ๐ผ๐ณ ๐ฉ๐ฎ๐ฟ๐ถ๐ฎ๐ฏ๐น๐ฒ๐ ๐ถ๐ป ๐๐ฆ
Before moving to the point, let us understand 3 concepts here:
1๏ธโฃ Global Scope - Variable is declared outside the function. This variable is accessible inside every function present in the code.