...

/

Set up a local environment with create-react-app

Set up a local environment with create-react-app

Can you believe this is the third time I’m writing a “How to set up all the tools and get started” section? The ecosystem moves fast!

You can see the old versions as Appendix A – a roll-your-own environment that’s almost the same as the one I’m about to show you, and Appendix B – a browserify-based environment (if you don’t like Webpack).

In the summer of 2016, the React team released a tool called create-react-app. It creates a React app so that you can get started right away. All of the code in this book runs with an app set up like this.

Getting started with React has never been easier.

  1. Make sure you have node.js
  2. Install the app generator
  3. Run the app generator

Make sure you have node.js

Modern JavaScript development runs on node.js. Your code still ends up in a browser, but there are a few steps it has to go through before it gets there. Those toolchains run on node.js.

Go to nodejs.or ...

Access this course and 1400+ top-rated courses and projects.