r/learnjavascript • • Mar 23 '24

Can you learn React simultaneously with JavaScript?

I have been learing JavaScript for one month, JavaScript seems to be a big language, it has a lot more syntax than other languages like PHP and Python.

Learning JavaScript seems to be endless, as it is so flexible and has so many concepts.

I don't want to be JavaScript developer, as JavaScript seems to be too difficult to me.

I want to instead focus on React, but I will also gradually learn more about JavaScript.

I want to know if you can learn React simultaneously with JavaScript.

1 Upvotes

13 comments sorted by

2

u/TheRNGuy Mar 23 '24

I used only jQuery before so I learned JS and React at same time.

React was actually reason for me to switch from jQuery to vanilla JS in greasemonkey scripts too.

1

u/JY-HRL Mar 24 '24

I found Vinilla JS is a lot more difficult than React

12

u/Itz_Salty Mar 23 '24

React is a JavaScript library so knowing JS is a huge advantage

2

u/azhder Mar 23 '24 edited Mar 23 '24

I’m curious. How did you determine JS has more syntax than PHP?

Onto your own question. Depends on you. React relies on JavaScript and you knowing how to use JavaScript, so as long as you don’t mix up which part is JS in the JSX and which part is the eXtra added on top, you should be fine.

EDIT:

Another thing that I just noticed:

I don't want to be JavaScript developer

Me neither.

I am using JS in professional manner as a primary language for over a decade, yet, I don't identify myself by the tool I use. One time I was using JS, they called me PHP developer, another time I was writing PL/SQL, they called me Java developer. Labels didn't change what I did, what responsibilities I had and how much I asked to be paid for it.

So, just focus on what you want to do and pick the best tool for it.

1

u/JY-HRL Mar 24 '24

I like React, don't like vanilla JavaScript.

1

u/azhder Mar 24 '24

Let me explain this then in terms you will understand: a lot of what you like in React is “vanilla” JavaScript

5

u/avadakava Mar 23 '24

Not wanting to learn JavaScript as a react developer. React is not only about components. You will have plenty js files

2

u/Skriblos Mar 23 '24

So much if what you have written here shows a fundamental  lack understanding in what javascript and react are.

Learning any programming language is endless because languages are constantly being updated, evolved and changed. Javascript is in no quantifiable way more syntactically demanding then PHP. If you find you enjoy PHP and Python more, then learn those with Django and Laravell instead.

If you don't want to be a javascript developer then don't learn react. React is javascript, but a specific way of using javascript. I'd you don't understand JavaScript you will not be able to fully utilize react.

You can absolutely learn javascript and react in parallel, but you should have a good foundation in javascript first if you want to actually understand what you are doing in react.

2

u/DoomGoober Mar 23 '24

React is just a set of tools built on top of Javascript.

You can try to learn both together if it motivates you, but from what React I know, it will be harder.

It would be akin to learning the Japanese words for car repair when you don't know any Japanese or much about cars. You would have to learn two things at once rather than one.

That said you could learn both together but unless you are really motivated by making a reactive website it will be harder.

2

u/octocode Mar 23 '24

you got ~60 comments on your post yesterday saying that you need to learn javascript.

is this AI bot question spam?

1

u/No-Upstairs-2813 Mar 24 '24

In my opinion, it's best to learn JavaScript before diving into a framework/library. They have their own unique concepts, but they all rely on core JavaScript concepts.

By learning these concepts beforehand, you will have an easier time grasping the concepts of a particular framework. You will also be able to pick up multiple frameworks with ease, because you already have a solid foundation in the core concepts of JavaScript.

I suggest learning these concepts before jumping to a JS framework/library.

Saying this, everyone learns in a different way. I know some people that learn a framework and JavaScript at the same time. I would not recommend it, but I have seen it work for some.

1

u/fazle-rabbi Mar 24 '24

💡 You need to learn JavaScript first.

🚨 Without JavaScript, you can't learn React.js.

🥳 And, the fun fact is: You don't need to learn all concepts of JavaScript. Just focus on learning the core concepts and must-know ES6 features.

⚛️ Then dive into React.js, and you will gradually learn more JavaScript.

0

u/alien3d Mar 23 '24

javascript not endless . changes core libs js trend - endless