15. Setting Up Your React Development Environment

The last major React-related topic we look at is less about React and more about setting up your development environment to build a React app. Up until now, we’ve been building our React apps by including a few script files:

<script src="https://npmcdn.com/react@15.3.0/dist/react.js"></script> <script src="https://npmcdn.com/react-dom@15.3.0/dist/react-dom.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.min. js"></script>

These script files not only loaded the React libraries, but they also loaded Babel to help our browser do what needs to be done when it encountered bizarre things like JSX (see Figure 15-1).

Figure 15-1 ...

Get Learning React now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.