Fork me on GitHub

there is good content about writing macros in Joy of Clojure, there’s also a book on clojure macros out there that I haven’t read


Awake now, and capable again of rational thought. ... Macro is needed because I want to define the component name, not just its action. (That is: the macro is creating the definition of, e.g., sodium.core/ in my example above). If you are curious, the macro is I would love to see a nice way to do this without macros, but I don't see one. Meanwhile, my immediate problem was solved by forcing eval of the function symbol, so the open questions are just ones of elegance and education.


why is the component name important? it would accept an anonymous function instead


Not sure if reagent is to blame but compiling my code in any :simple and :advanced causes

TypeError: Cannot read property 'createFactory' of undefined
From figwheel I may be getting a heads up warning with this Warning: Accessing factories like React.DOM.noscript has been deprecated and will be removed in v16.0+. Use the react-dom-factories package instead.  Version 1.0 provides a drop-in replacement. For more info, see 
anyone had similar problems?


nevermind, see that this is caused by a plugin Im using react-modal