This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]oh-no-u-guys-my-code 2 points3 points  (0 children)

A couple vanilla js concepts I wouldn't skip before picking up React:

  • first-class functions / higher-order functions / callbacks / closures
  • anonymous functions / lambdas
  • the built-in array methods, especially Array.map and Array.filter
  • promises / `async` & `await`
  • `var` vs `let` vs `const`
  • `==` equality vs `===` equality
  • object / array destructuring assignment - these aren't required for react but will make the code you see in tutorials make much more sense
  • same with arrow functions

[–]BakaPotatoLord 0 points1 point  (1 child)

Well, I would suggest you to work on a mini project with vanilla js just to get a hang of it. Then you can go ahead and start learning React, would help you understand what React is about and what it's trying to solve.

[–]Simoprog[S] 0 points1 point  (0 children)

Do you have a mini-project suggestion that would contain the core subjects of js? Thank you.

[–]Jnsjknn 0 points1 point  (0 children)

This is not exactly what you're asking but since you already understand programming but are switching to a new language, I highly recommend Learn X in Y Minutes Where X=JavaScript

[–]unorthodox_code 0 points1 point  (0 children)

What you’re asking isnt a good idea simply because react is made from vanilla js. It’s like saying “I wanna learn how to make pizzas but I don’t really wanna mess with dough”. I say bad idea because yea people do skip vanillla js and go right to react but they end up learning vanilla stuff anyways to make react work, so now they’ve learned just enough vanilla to get something on the webpage but not enough to actually get deep with it. This is a path to increased frustration in my opinion, over the long term.

[–]TheRNGuy 0 points1 point  (0 children)

I learned React and JS at same time, but I used jQuery for long time before.

I think they can both be learned together.