electric
electric copied to clipboard
a reactive Clojure dialect for web development that uses a compiler to infer the frontend/backend boundary
Hendrik in [slack](https://clojurians.slack.com/archives/C7Q9GSHFV/p1689176113411489): > Is it possible to use a (e/def db) in a callback? I added this to the starter app: `(ui/button (e/fn [] (println (todo-count db))) (dom/text "click"))`...
https://github.com/hyperfiddle/electric/blob/7e3400f005e0f62bf0c434dedc1fdd4c73f213ea/src/hyperfiddle/electric.cljc#L476-L477
This URL: https://electric.hyperfiddle.net/ Has no link to this URL: https://github.com/hyperfiddle/electric So when I send people to the former, so they can see how it's the Raptor 3 of frontend/backend frameworks,...
If I call: ```clojure (hyperfiddle.electric-dom2/props {:class "a b c"}) ``` the dom shows: `class="c b a"`.
Electric v3 today must own the construction of the root element for our dom position tracking algorithm to work properly. If not, e.g. we mount to document.body directly, any children...