I'm importing a react component (using the :npm-deps support) and wrapping with the adapt-react-class adapter:
(:require [reagent.core :as reagent]
[react-helmet])
(def meta-tags* (reagent/adapt-react-class (aget react-helmet "default")))
(defn main-panel []
(let []
(fn []
[meta-tags*])))
This works fine for development, but when advanced compiler is on:
Uncaught TypeError: Cannot call a class as a function
Minimimal repo: https://github.com/fbielejec/npm-deps-demo