Fork me on GitHub
#reagent
<
2019-05-17
>
theeternalpulse00:05:20

are hooks needed, I use atoms defined in lets, they seem to be easy to manage

lilactown00:05:11

there are pros and cons to using one over the other. Reagent was built before hooks existed, and created their special atom. React recently came along and released something similar

lilactown00:05:41

React Hooks has slightly different behavior that compliments future React features. but reagent works great right now too!

Paul21:05:08

can someone explain why [:.tac ...] breaks when passed as children, whereas [:div.tac ...] doesn't? Demo: https://day8.github.io/re-playground/?gist-id=paulkoegel/cc14431f58bedfc1899ea33b1853144b

Execution error.
ERROR: Error: Assert failed: Invalid tag: '.tac' (in  > instructions.core.parent)
tag

Paul21:05:24

ah, found it in the docs: https://reagent-project.github.io/docs/master/UsingHiccupToDescribeHTML.html#special-notation-for-id-and-class for some reason I thought Reagent supported the same shorthands as rum, where [:.tac] works.

theeternalpulse23:05:50

I like it that way, the .notation is great for code gen tools like carma, not so much for actual markup, at least for me. Though of course more options, or the ability to expand them would be cool

theeternalpulse23:05:59

similar to a "reader macro" for tags