DEV Community

Muhammad Uzair
Muhammad Uzair

Posted on

help me decide between React & Node

It's been few months i have started learning JavaScript, learned fundamentals and DOM Manipulation using JS. My initial plane was to become web developer before end of this year.
So in upcoming 3 moths i will learn Node, Express, MongoDB and will learn react next year if i wanted to.
So i know what is React and Node and their purposes.

problem

Now i am confused whether i should learn React first then move to Node and backend. Here are some reasons why

Reason to learn React

1.My CSS and layouts skills are not good enough so i think it would be good idea to master(learn) one thing before moving to other side.
2.about to start learning UI/UX so kinda good mix with React and front-end.

  1. Job placement opportunities because of good experience in one skill.

Reason to learn Node.

  1. Most importantly, being student of cs who is about to graduate so i have to build a final year project maybe to implement idea i have.
  2. Taste of Backend, not sure whether i will love to work at front-end or back-end because i haven't worked on other side.
  3. Learning React is at end of day all UI worthless unless you have backend for it, so won't be able to execute my ideas.

Can't learn both because a semester is left in my 4 years graduation program. Few months where i have limited time to code, so final year project will be left

Would love to hear from you ⬇⬇

Discussion (26)

Collapse
andrewbaisden profile image
Andrew Baisden

I started off with the frontend before I learned the backend it just feels more natural in my opinion. It is better to be strong on the front end instead of a 50/50 split. Focus on getting good with javascript and react and then you can level up to the MERN stack.

Collapse
uzair004 profile image
Muhammad Uzair Author

I was thinking about that, but learning React doesn't seems to be straight forward. I may be end up in loop.

Collapse
andrewbaisden profile image
Andrew Baisden

Many people say that React is not easy to learn but I found it quite simple. Just read the docs and watch lots of React tutorials on YouTube and make sure that you are actually practicing by building apps. Of course you should only do this after you have improved your javascript skills.

Collapse
vinit profile image
Vinit Agrawal

Backend is not that complex to learn and most applications have more or less similar backend with CRUD APIs. Frontend on the other hand usually is different for every application. So I would suggest to go forward with your original plan and quickly finish learning node.js, express and MongoDB. Then come to React and CSS and spend time learning frontend.

Collapse
uzair004 profile image
Muhammad Uzair Author

Well noted, Thanks. 👍

Collapse
jsmrcaga profile image
Jo Colina

I learned backend (with Node) waaay before front-end. As Vinit said, all backend technologies ressemble one another in their structure somehow, but it's not "hard" per se (if you're just building an API, like for your final project I imagine).

React is an amazing tool for front-end, but comes with a weird learning curve. I would advice you to learn react in 3/4 days with mini-projects and then build somehting learning both back + front at the saame time (you implement a simple CRUD API and then it's corresponding front page).

However note that you don't really need a backend at all to make an app!
1/ it could work 100% locally (a todo app for exaample)
2/ you can use "pre-existing" solutions for storage, and rely on them. We build pswd.app on full front-end, and are using Blockstack to store your passwords on the blockchain. No bakcend needed whatsoever

Collapse
uzair004 profile image
Muhammad Uzair Author

Thanks for your detail answer.
React is hot topic these days and have it's own learning world, as i can see online.
But learning React in 3,4 days will not be possible. As there are so many things JSX, Redux, hooks and stuff i haven't heard yet and will encounter once i start with React.

Collapse
jsmrcaga profile image
Jo Colina • Edited on

Oh sorry, I wasn't implying you would master react in 4 days. I was saying you could learn the basics of it and then advance both projects (front + back) at the same time. It's up to your preference at the end though.

And as Juan Manuel said, it's better to understand React well before going into redux (I personally don't like redux and don't use (even on an enterprise grade app))

Collapse
jmvallejo profile image
Juan Manuel Vallejo

Try to focus on React and really understanding it well before you try Redux, otherwise you'll be very confused and the process can actually take longer.

Collapse
kamo profile image
KAIDI

Try to build up a project where you use both, for react use function components, it's easier to learn, for node there are some templates of servers, try to run it first to see that it works then you add what you want gradually

Collapse
deepu105 profile image
Deepu K Sasidharan

I would suggest not to start with React unless you are quite good at JavaScript first. React has a steep learning curve and learning it before you learn basic (HTML, CSS and vanilla JS UI development) might impact your understanding of UI development negatively. I would suggest to focus on vanilla JS, HTML, CSS first, once you master that anything else is just learning the APIs and looking up docs and can be done easily, be it NodeJS or React. If you must start with NodeJS

Collapse
aachh profile image
aachh

React and Node are two completely different things; you don't need to know both of them to deploy. There are plenty of hosting services that take a plain React app and do the backend themselves, and you can always just send a plain HTML file with Node (what happened to simplicity-oriented design?).

You can totally make a sick graduating project with React only, Node only, and the sickest kinds of projects with both of them.

Collapse
akshanvic profile image
Akshan

i am in the field for past one year. I first learned React but cant complete it fully. then i moved to node which is better than react but after some time it starts to getting bore. So finally i started to work on a project for which i want to write both the back-end and front-end. Now i am more efficient in learning both react and node. So my opinion is learn back-end first and come to front-end

Collapse
pedrogaspar profile image
Pedro Gaspar • Edited on

roadmap.sh

This may be helpful to get a grasp of a wide spectrum of technologies for both Frontend and Backend (and also React itself). This is very detailed and will take people a long time to go through (you probably don't need to know even 10% of this stuff to get a job, in my opinion!), but maybe it helps you get a sense of the possibilities.

Collapse
abodmicheal profile image
Abod Micheal (he/him)

learn front end first then back end

Collapse
djnitehawk profile image
Dĵ ΝιΓΞΗΛψΚ

just learn svelte for front-end dude! you won't be disappointed 😉

was a fan of react myself but then svelte came along and blew me away.

Collapse
coding404life profile image
Yahya

how can i get a job with that svelte ?

Collapse
zilti profile image
Daniel Ziltener

Learn react, and toss Node-for-the-backend far, far, FAR away. Go with something else for server-side.

Collapse
andrewbaisden profile image
Andrew Baisden

What is your preference when working on the backend? The MERN stack is quite popular. Even though I had a recruiter reach out today and the backend for the stack was either Java or Python which I don't know...

Collapse
pengeszikra profile image
Peter Vivo

Really you need to learn pure javascript at first. When create few test - even for react - mandatory mock backend, and that is the point, where you know what you do.

Collapse
ajiq profile image
ajiq

what about redux or NodeJs ? which first ?

Collapse
uzair004 profile image
Muhammad Uzair Author

Redux comes under React. So technically it's same question React or Node

Collapse
ajiq profile image
ajiq

I just finished React course, I need to decide whether or not I need to learn flux/react before getting to the back end

Collapse
neshnishant188 profile image
Nishant Sharma

help me I'm Also At this same Sitution ?? what should i learn first node js or react??

Collapse
uzair004 profile image
Muhammad Uzair Author

oh a year old memory lol
still haven't tried React yet.

You should probably go with React, easy to get job as frontend Dev, React has tons of jobs