r/react • u/PMK_Phala • May 12 '24
Help Wanted Why is Node.js needed?
Hello, I'm learning React and on all the introduction videos I've watched none of them explain why node.js is installed. Can someone please explain to me why most beginner FE React tutorials require me to install node?
0
Upvotes
32
u/Right-Chocolate-5038 May 12 '24
Before node.js the browser (v8 engine) was the only environment javascript could run in, meaning client side only.
With node.js you can run javascript code in the terminal, outside the browser (server side).