r/reactjs • u/lllrnr101 • Apr 20 '24
Needs Help Why does every prerequisite for react says ES6.
Hello.
I am looking forward to learning react to have some basic UI designing skills. Was looking at the prerequisites before learning it. And very resource said almost the same things - HTML, CSS, JavaScript and ES6.
What is the deal with ES6? Why especially mention it? The current version is ES12?
Can anyone tell or point out resource which can clarify that for me?
Thanks.
0
Upvotes
22
u/Noch_ein_Kamel Apr 20 '24
ES6 was the last "big release" where between ES version would be many years. After that they switched to yearly releases.
The Original JavaScript ES1 ES2 ES3 (1997-1999)
The First Main Revision ES5 (2009)
The Second Revision ES6 (2015)
With the change of the release cycle each version would obviously have less changes and many of those are QoL or for very specific scenarios. See https://webreference.com/javascript/basics/versions/
So... ES6 is a safe choice with important features like let, const and arrow functions.
Async/Await from ES8 is also important.
9
u/ynonp Apr 20 '24
They usually refer specifically to the following features:
And yes if you've learned JavaScript post 2020 you're probably familiar with them already
5
u/azangru Apr 20 '24
Inertia and copy-pasting. The phrase "JavaScript and ES6" is practically meaningless these days. It should just say javascript.
1
u/TheRNGuy Apr 20 '24
So that you know in which old browsers React can work.
1
u/kimhwanhoon Apr 21 '24
I think the most important thing that had changed was the “const” and “let”. Before they used “var” for the variables. But it what sort of very different from what is const and let now. They were used outside of its function scope which made a lot of errors and mistakes. So this was the big change. And you see, in a frontend development. We don’t really use much what was updated later I mean we could use it but we don’t have to use it because we just mostly use Array.map() and similar things like that.
1
u/[deleted] Apr 20 '24 edited Apr 21 '24
[removed] — view removed comment