title: Failed to construct ‘HTMLElement’: Please use the ‘new’ operator
body: <p>I am trying to use AWS Amplify Authentication lib in a re-frame app.
  The lib provides a higher order component <code>withAuthenticator</code> which is supposed to wrap the main view of your app. I am trying to use <code>reactify-component</code> and <code>adapt-react-class</code> but unfortunately I get the following error:</p>
  
  <blockquote>
    <p>Uncaught TypeError: Failed to construct ‘HTMLElement’: Please use the ‘new’ operator, this DOM object constructor cannot be called as a function.</p>
  </blockquote>
  
  <pre><code>(defn main-panel []
    [:div
     [:h1 "Hello" ]])
  
  (def root-view
    (reagent/adapt-react-class
      (withAuthenticator
        (reagent/reactify-component main-panel))))
  
  (defn ^:dev/after-load mount-root []
    (re-frame/clear-subscription-cache!)
    (aws-config/configure)
    (re-frame/dispatch-sync [::events/initialize-db])
    (reagent/render [root-view]
                    (.getElementById js/document "app")))
  </code></pre>
  
  <p>Any help is appreciated</p>