Last active
December 11, 2017 10:18
-
-
Save viebel/f5e8fb5f4c6a33fd7b9a758cc2cdf549 to your computer and use it in GitHub Desktop.
Reagent Attributes. Open in Klipse: http://app.klipse.tech/?container&cljs_in.gist=viebel/f5e8fb5f4c6a33fd7b9a758cc2cdf549
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require '[reagent.core :as reagent]) | |
(def styles {:style {:color "red"}}) | |
(defn hello [] | |
[:div styles | |
"Hello CSS"]) | |
(reagent/render [hello] js/klipse-container) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment