# Three questions when starting with React.js.

# Three questions when starting with React.js.


### [](#1-why-do-i-need-to-use-npm-npm-does-not-stands-for-nodejs-why-i-need-it-to-deal-with-npm-in-a-javascript-reactjs-frontend-project)1 - Why Do I need to use npm, npm does not stand's for Node.js, why I need it to deal with npm in a javascript react.js front-end project?

> _Javascript is now I full-featured programming language and like one there are some ways to manage the dependencies. Npm is one of those ways. Is the same logic to_
> 
> *   _Nuget and .net_
> *   _Composer and PHP_
> *   _Java and Maven_

### [](#2-in-my-early-days-as-a-web-developer-i-put-the-cdn-hosted-scripts-on-bottom-of-my-html-body-tag-and-had-to-create-that-scripts-that-i-needed-how-i-do-that-in-a-reactjs-project-)2 - In my early days as a web developer I put the cdn hosted scripts on bottom of my html body tag and had to create that scripts that I needed, how I do that in a react.js project ?

> _This is still the way that js will be placed on the html, but now react.js will be in charge to put the deployment version script on the html page._

### [](#3-why-there-is-a-development-server-and-a-deployment-version-on-react-project-)3 - Why there is a development server and a deployment version on React Project ?

> _Modern javascript frameworks like compiled languages put in one side the code repository and assets and on the other side a folder or set of folders that will be the deployment version. In this folder called "build" will be all the files that the js project needs to work and also an html that works as a page root._
> 
> _1 - `$: npm install react`_
> 
> _2 - `$: npm install create-react-app myProject`_
> 
> _4 - Development Process_
> 
> _3 - `$myProject: npm run-script build ( creates a deployment version on the build folder of the project)`_

