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
(defn component | |
"Experimental! A Reagent 'component' is a (fn [& [props children this]]) that: | |
* May have special metadata for React lifecycle methods. | |
* Returns either Hiccup data, or a nested (usu. post-setup) component[1]. | |
This util makes writing Reagent components a little more convenient: | |
(component | |
:render (fn [node_ & cmpt-args]) -> Hiccup data, or nested component[1]. | |
;; Additional methods optional: | |
:did-mount (fn [node]) |
NewerOlder