Created
December 13, 2019 15:51
-
-
Save frankiesardo/50db82ce6257da322b8a273301c82182 to your computer and use it in GitHub Desktop.
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
(ns react.helper) | |
(defmacro defc [name argv & body] | |
`(def ~name (react.helper/component (str '~(get-in &env [:ns :name]) "/" (name '~name)) (fn ~argv ~@body)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment