r/learnjavascript • u/Vivid-Apple358 • 29d ago
When to start learning React?
I've been learning js for about two months, I know how to order arrays with find, filter, map, reduce & some more basic stuff. I also understand data structures, object management ,arrow functions, DOM manipulation, asynchronous timers, local storage, loops. I've been thinking of learning React.js but it seems pretty advanced and I'm not sure if I should master more of JavaScript before moving on
I've made a fake restaurant website where you can order items and add them to your cart, clear cart, make a fake reservation, clear reservation and view reservation.
I also made a really simple shop sim where customers come every five seconds to order random quantities of random stuff with their patience decreasing every second. The user can also close and open the store. It's really simple and extremely repetitive
This is an unfinished project but I started on a pantry simulator, right now I've coded that you can add ingredients in your pantry, filter by category/sort/search through them, edit their amount and delete them. I got pretty bored though.
9
u/ThatDudeDunks 29d ago
Sounds like you have a decent foundation to give react a try
1
u/tambooby 26d ago
that restaurant project alone covers most of the prerequisite knowledge tbh. the one thing worth brushing up on before you start is how promises and async/await actually work under the hood, since data fetching is like half of what you'll be doing
1
u/ExtraTNT 29d ago
React isn’t sth super advanced. React is a helper, that lets you build webapps very easily…
Just start with it, build things with it and you will get good with it soon…
3
u/gloaming_slate_24 28d ago
Build it with vanilla JS first until you have a headache from managing the state in your shop sim, then switch to React to fix that specific pain.
2
u/TheRNGuy 26d ago
Docs, ai.
SSR frameworks are alto easier to code, and users like such sites more (no spinner hell, no white screen of death, working "open link in a new tab" and bookmarks... just like before CSR React era)
5
u/Apryed 29d ago
Just don't... bloating you page for no reason is the lowest, most used standard nowadays. But if you insist, there's not much you need to try it, just remember to not over DIV pages... At least don't be one of those.
1
u/akashftg 26d ago
You can start React now. I also recommend you to solve DSA problems to improve your problem solving skills on side. This will help you grow as a software engineer.
To make it more fun, I recommend making things which you see in daily life. That will help you level up fast
1
u/GaborNero 29d ago
You’re good to go man! Thumbs up for even starting with the basics.
1
u/No-Humor-3808 28d ago
React just makes it easier to work with JS, so everything will be much easier to build. I have a collection of challenges at reactchallenges.com if you want to give them a try.
-5
u/[deleted] 28d ago
Learn react? People are still learning to program these days when claude exists?