reagent-project / reagent-template

A Leiningen template for projects using Reagent.
MIT License
394 stars 55 forks source link

Use recommend shadow-cljs setup for init/reload #185

Closed thheller closed 2 years ago

thheller commented 2 years ago

Should use :init-fn instead of having html emit a function call. :init-fn ensures the function is called when the JS file is loaded and enables using <script async>. Didn't change that part but it is recommended.

Also removed the :after-load from the build config since it is recommended to use metadata hooks.

yogthos commented 2 years ago

Thanks!