Show CLJS compilation errors on screen when using figwheel
- Using AppRegistry.registerComponent to init app, and preserve initially registered root component of the app
- Enable figwheel heads up display
Upgrade your existing project:
1.Run command re-natal upgrade
2.Change definition of init function in core.cljs to:
(defn init []
(dispatch-sync [:initialize-db])
(.registerComponent app-registry "YourAppName" #(r/reactify-component app-root)))
3.Rename main application component in core.cljs to app-root:
(defn app-root []
...
)
4.Delete function mount-root from core.cljs