Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSHUTO KAKU
15,001 PointsIs node.js important for creating App with React js?
I am learning React js these days.
During learning React js, there is suggestion that should learn node.js and NPM before learning React js.
Is it really necessary to learn them?
2 Answers
Brendan Whiting
Front End Web Development Techdegree Graduate 84,738 PointsI would consider npm a prerequisite for learning React. It's possible to build in React without npm, but you would be missing out on a lot of great productivity tools. There's a command line tool called create-react-app
that builds out basic scaffolding for you for a React app, and you need npm for that. Then, if you want to install additional JavaScript packages, you can install them in your app with npm install
. You can use npm to test and build your app, using the scripts that come out of the box with create-react-app
or making your own. If you're joining an organization that is building a React app with any complexity, 99% probability is that they use npm.
You will need node.js installed on your computer in order to use npm. But you don't need to know server side node.js programming, like express.js, in order to use it.
Jan Oberreiter
78,020 PointsIt is not necessary - but it helps though. You can build a frontend with react ... but the backend can be written with node.js but also with other languages ...