Coder Catchup

Episode 079 - React your next project in 1 command

Informações:

Sinopsis

https://github.com/facebookincubator/create-react-app Create React apps with no build configuration. Getting Started: npm install -g create-react-app Creates simple commands: create-react-app "npm start" to launch the app with hot reloading in a browser "npm run build" builds the app for production usage in a "build" folder If you have had enough of the zero config and want to go out on your own run "npm run eject" to get all the webpack files node modules etc localised for the project Folder structure is nice my-app/ README.md index.html favicon.ico node_modules/ package.json src/ App.css App.js index.css index.js logo.svg What does it give you if you eject If you use the base functionality there is only 1 dependency, react-scripts, but when ejected, you get the following: autoprefixer, babel-core, babel-eslint, babel-loader, babel-plugin-syntax-trailing-function-commas, babel-plugin-transform-class-properties, babel-plugin-transform-object-rest-spread, babel-plugin-