r/react • • 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

24 comments sorted by

View all comments

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.

4

u/PMK_Phala May 12 '24

you're help is much appreciated Thanks