This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-30
Channels
- # announcements (5)
- # babashka (9)
- # beginners (48)
- # calva (300)
- # clj-kondo (9)
- # clojure (44)
- # clojure-austin (2)
- # clojure-europe (14)
- # clojure-uk (4)
- # clojurescript (1)
- # conjure (2)
- # datascript (3)
- # datomic (8)
- # exercism (5)
- # fulcro (1)
- # luminus (4)
- # music (1)
- # off-topic (12)
- # pathom (2)
- # rdf (18)
- # react (8)
- # sci (78)
- # shadow-cljs (12)
- # spacemacs (4)
- # tools-build (5)
- # tools-deps (26)
- # vim (4)
- # xtdb (8)
I told a coworker functional react components are a good choice, he answered > the "business"/"view" separation in react is halfway non-existent| do you see any logic in that?
judging from my experience with a small re-frame webpage I'm deciding he is just full of shit 😛 Because it split business and view very convincingly to me.
if you can separate your business logic into pure functions, then it's easy to have react use those pure functions to drive the view
that being said, it can be difficult to figure out what's "business" logic and what's "view" logic, and React won't help you figure it out. it doesn't care.
I understand the response, but not to your suggestion. Functional doesn't mean you have to separate business from view.
I don't understand what it means to be "halfway nonexistent"
precisely, me neither. But I know that enforcing encapsulation of state in the UI as a separation of concerns leads to low quality UI code
Yea, the lines are too blurred. It's best to just not get too hung up on it.