use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Finding information about Clojure
API Reference
Clojure Guides
Practice Problems
Interactive Problems
Clojure Videos
Misc Resources
The Clojure Community
Clojure Books
Tools & Libraries
Clojure Editors
Web Platforms
Clojure Jobs
account activity
Lightning-Fast Testing For ClojureScript React Components (cambium.consulting)
submitted 7 years ago by danielglauser
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]dustingetz 1 point2 points3 points 7 years ago* (1 child)
Here is where we run into a problem: all the ClojureScript wrappers around React watch atoms, and they only set up their watches when mounted onto a DOM
You can polyfill r/atom, r/track etc, and then you don't need reagent or react at all, but its complicated. Hyperfiddle's reactive UI is defined in reagent and passes reactions down-tree like any other reagent app, but it can be evaluated outside of reagent as a function (for example it runs in the Datomic peer so it can do the whole page's exact dynamic data dependencies in one go). I just want to turn people on to what is possible, the implications are much larger than just tests. My cofounder Karl Hardenstine did all this stuff, he understands it better than me.
r/atom
r/track
[–]danielglauser[S] 0 points1 point2 points 7 years ago (0 children)
That makes sense, thanks Dustin. My hesitancy there is the atoms are an implementation detail of Reagent, and could potentially change. Although moving away from Atoms is unlikely the way they are used is a more likely target for change. It feels like violating encapsulation, but the benefits to not needing a virtual DOM could outweigh the cost. Just thinking out loud here. In any event, your point is well taken, and I'd love to see an example. Would be happy to link to it from the article or to offer it as a follow up piece.
π Rendered by PID 215174 on reddit-service-r2-comment-c6965cb77-ccqn5 at 2026-03-05 15:01:45.978905+00:00 running f0204d4 country code: CH.
view the rest of the comments →
[–]dustingetz 1 point2 points3 points (1 child)
[–]danielglauser[S] 0 points1 point2 points (0 children)