reagent

A minimalistic ClojureScript interface to React.js http://reagent-project.github.io/
2021-02-18T13:55:03.073400Z

You may want to look into a lib to do this. I am partial to emotion: https://dvingo.github.io/cljs-emotion/#!/dv.cljs_emotion.devcards/global-styles https://github.com/dvingo/cljs-emotion

defn home-page []

  [:div {:class ["m-6" "p-6" "bg-gray-700" "text-gray-200"]}
     ;; styles are injected when this component renders, and removed on unmount
    (global-style {"body" {:background "blue"}})
    ;; elided..
   ])