title: React V16.7 TypeError: Object(...) is not a function
body: <pre><code>  import React, { useContext } from 'react';
    useContext is undefined.
  </code></pre>
  
  <p>error details:</p>
  
  <pre><code>  Uncaught (in promise) TypeError: Object(...) is not a function
  </code></pre>
  
  <p>error when processing </p>
  
  <pre><code>   const context = useContext(UserContext);
  </code></pre>
  
  <p>Current react versions:</p>
  
  <pre><code>   "react": "^16.7",
    "react-dom": "^16.7",
  </code></pre>