title: Uncaught TypeError: create is not a function using useEffect React Hook with AJAX request
body: <p>I'm trying to use React hooks to fetch some data and display it, but am getting an error:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="true">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function App() {
    const [user, setUser] = React.useState(null);
    React.useEffect(fetch('https://randomuser.me/api/')
      .then(results =&gt; results.json())
      .then(data =&gt; {
        setUser(data.results[0]);
      }), []);
    
    return &lt;div&gt;
      {user ? user.name.first : 'Loading...'}
    &lt;/div&gt;;
  }
  
  ReactDOM.render(&lt;App/&gt;, document.getElementById('app'));</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://unpkg.com/react@16.7.0-alpha.0/umd/react.development.js"&gt;&lt;/script&gt;
  &lt;script src="https://unpkg.com/react-dom@16.7.0-alpha.0/umd/react-dom.development.js"&gt;&lt;/script&gt;
  
  &lt;div id="app"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <pre><code>Uncaught TypeError: create is not a function
      at commitHookEffectList (react-dom.development.js:15901)
      at commitPassiveHookEffects (react-dom.development.js:15911)
      at HTMLUnknownElement.callCallback (react-dom.development.js:149)
      at Object.invokeGuardedCallbackDev (react-dom.development.js:199)
      at invokeGuardedCallback (react-dom.development.js:256)
      at commitPassiveEffects (react-dom.development.js:17299)
      at wrapped (scheduler-tracing.development.js:204)
      at flushPassiveEffects (react-dom.development.js:17338)
      at dispatchAction (react-dom.development.js:12035)
      at eval (index.jsx? [sm]:9)
  </code></pre>