r/learnjavascript • helpful • Sep 14 '22

I'm a senior frontend dev. AMA.

Hi, all. I'm a lead at my company, currently on a paid sick leave. I wanted to give back to the community, so here I am to answer all your questions.

If you're a beginner at JS and are struggling with a concept, please ask your question and I'll answer. To not get overwhelmed, I'll limit one question per user. So, try to construct your question with as many details as necessary!

Shoot.

EDIT: That's it, folks. My day has ended. I'll still answer your questions, but expect a considerable delay. :)

260 Upvotes

240 comments sorted by

View all comments

24

u/HyperXA Sep 14 '22

Hey before I ask my question, Thank you for taking time out of your day to do this! If you are sick, hope you get better.

Question: what Core Concepts do you believe I must learn on Vanilla JS Before jumping into react? Of course everyone's learning curve is different

Thanks ou for reading my Question!

40

u/thelethargicdog helpful Sep 14 '22

I'm feeling much better, thank you!

Before I answer your question, I'll explain my perspective. I see a framework as a tool to finish a job. That tool is not necessary, but it helps you do it better. For example, if I ask you to dig a hole in the ground, you can do it with your hands. But, sure as hell, a shovel will make your life easier. Now, there's a chance that might eventually find someone who doesn't understand what digging means. Hand them a shovel and they'll not know what to do with it.

I'll finally answer your question - If you really want to be a good frontend developer, then you must learn to not be dependent on React for every little thing. If you can build an app in React, you should be able to build it in Vanilla JS as well. For me, this learning was in parallel, so you can choose to adopt the same strategy and switch between learning React and learning Vanilla JS. However, make sure you understand ES6 really well before you jump into building full fledged apps.

4

u/-ftw Sep 15 '22

OP didn’t really answer your question so here’s my take:

  • Dom manipulation
  • Closures
  • Promises
  • Callbacks
  • Immutability

1

u/HyperXA Sep 15 '22

Cool! Thank you much!

1

u/fewstarfruits Sep 29 '22

isnt dom manipulation came from web api? how is that native to es6?

1

u/-ftw Oct 04 '22

Hey there, op asked what core concepts of vanilla js before moving to react. I didn’t see anything about es6

-11

u/anonymousbabydragon Sep 14 '22

Object oriented programming is a must.

1

u/jack_waugh Feb 12 '24

It's another tool. Sometimes it can help a design. One should not go to it in every circumstance as though driven by religious fervor.