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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.