forlooptanzania / ride-my-way

Car pooling app (of developers) by developers for developers in Tanzania
22 stars 6 forks source link

Why create-react-app instead of npm install react ? #8

Open noelnoja opened 5 years ago

noelnoja commented 5 years ago

Why are we using create-react-app instead of npm install react --save, if React itself is a node module?

BenMaruchu commented 5 years ago

@noelnoja Yes you can install just react and use it as it is but create-react-app have taken care of configurations that you will have to do manually to have a react development environment.

so to mention fews stuffs you will have to setup

  1. If you want to use es6 features you will have to transpile your codes to es5 so that they can run in browser environment
  2. You will have to figure out how to bundle your app which can be a daunting task especially configuring tools like webpack

can learn more here

Hopefully I have tried to answer your question