r/learnjavascript • u/Leading_Property2066 • Feb 22 '26
Which Vanilla JS style should I learn before moving to React?
Hi everyone,
I’m currently learning Vanilla JavaScript through the SuperSimpleDev YouTube course, and everything was going really well until I reached the Amazon project section. He starts using template literal HTML rendering where he injects JavaScript inside HTML strings, and I found it quite confusing compared to the earlier DOM manipulation approach.
Now I’m wondering which Vanilla JS style should a beginner focus on learning properly? Do most developers use template literals, DOM methods like createElement, or something else before moving to React?
For those who transitioned to React, what did you personally learn first that helped you the most?
Thanks in advance!
View all comments
Show parent comment
1
u/shgysk8zer0 Feb 23 '26
If you had actually built a whole framework that even remotely competes with React, you'd know that DOM manipulation is a trivial fraction of what it takes to build any sort of basic site even.
You almost always at least need events and requests, which are not merely DOM manipulation. Even using something like React, just at a beginner level, you need a lot of knowledge of JS and the fundamentals of programming. You cannot get away with just mere basic DOM manipulation.
And that is why I call you a liar. You cannot have built an entire framework like that without being fully aware of the basic needs of handling events and fetching things, and all of the complexity that lies outside of what's visual to a user.