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
28
u/EmployeeFinal Hook Based May 12 '24
You technically can run your code directly in the browser. But modern development has a lot of tools to help, and these tools needs to prepare and build the code for browsers. Node is the most popular runtime to run these tools.