title: import html file in react-typescript
body: <p>I'm trying to import a HTML file (.html) into react js - typescript (.tsx) as a component</p>
  <p>but it gives me this ERROR:</p>
  <blockquote>
  <p>error - ./pages/SM_login/Facebook.html
  Module parse failed: Unexpected token (1:0)
  You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See <a href="https://webpack.js.org/concepts#loaders" rel="nofollow noreferrer">https://webpack.js.org/concepts#loaders</a></p>
  
  </blockquote>
  <p>| 
  |   </p>
  <p>Here is my code:</p>
  <pre><code>const facebook = require('./SM_login/facebook.html'); 
  
     export default class CustomDocument extends Document {
        render() {
          return (
              &lt;div&gt;
                   &lt;li&gt;                          
                      &lt;iframe src={facebook }&gt;&lt;/iframe&gt;
                   &lt;/li&gt;
             &lt;/div&gt;            
      );
  }
  </code></pre>
  <p>}</p>