title: How to import Firebase Firestore into a create-react-app project using ES6 syntax
body: <p>I'm having trouble getting Firebase Firestore to work with the basic create-react-app boilerplate. Does anyone have a working sample?</p>
  
  <p>The <a href="https://firebase.google.com/docs/firestore/quickstart" rel="noreferrer">Get Started</a> doc only explains how to set it up with <code>require</code> statements, whereas I'd like to use ES6 imports.</p>
  
  <pre><code>const firebase = require("firebase");
  // Required for side-effects
  require("firebase/firestore");
  </code></pre>
  
  <p>What is the ES6 equivalent of <code>require('firebase/firestore')</code>?</p>