This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-10
Channels
- # beginners (61)
- # boot (264)
- # cider (125)
- # cljs-dev (3)
- # clojure (118)
- # clojure-gamedev (3)
- # clojure-greece (1)
- # clojure-italy (1)
- # clojure-nl (2)
- # clojure-poland (3)
- # clojure-russia (38)
- # clojure-spain (2)
- # clojure-spec (17)
- # clojure-taiwan (1)
- # clojure-uk (42)
- # clojurescript (118)
- # clojutre (5)
- # cursive (24)
- # datomic (22)
- # emacs (3)
- # events (2)
- # figwheel (19)
- # funcool (1)
- # jobs-discuss (224)
- # jobs-rus (1)
- # klipse (14)
- # luminus (1)
- # lumo (49)
- # off-topic (51)
- # om (34)
- # pedestal (1)
- # perun (1)
- # planck (93)
- # powderkeg (1)
- # re-frame (15)
- # ring (4)
- # rum (9)
- # slack-help (3)
- # spacemacs (2)
- # specter (13)
- # uncomplicate (1)
- # unrepl (22)
- # untangled (10)
- # yada (36)
@tonsky Well I wanted to avoid the createClass
since React will eventually get rid of it and many features of createClass isn't needed by Rum. And then I switched some code to JS instead of CLJ construct along the way
Not really saying that this is how rum.core should look like, I just wanted to dump this in case anybody else is working on avoiding createClass
.
Can I generate components from data (which may contain function names/objects) without using defc
?
Also, where does rum shines in comparison with reagent? They're both kinda almost all data, with optional React hooks, from what I've seen.
@yonatanel 1. Yes you can, just copy the build-ctor
function from rum core as a starting point and you can add all kinds of logic.
A few fun stuff I do there (some only in dev):
1. Flash (a css outline
) upon rerender and different color upon remount
2. Automatically assign key as the :db/id
of some argument (nice with datascript)
3. Add some meta data to the component to register every mounted instance and allow to inspect the state/props of all the instances.
@yonatanel Rum is more flexible and less opinionated. Some things are very rigid in Reagent, but you can use Rum any way you want