This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-05-22
Channels
- # announcements (17)
- # beginners (11)
- # biff (5)
- # calva (22)
- # cider (30)
- # clj-kondo (33)
- # clj-on-windows (20)
- # clojure (59)
- # clojure-dev (25)
- # clojure-europe (31)
- # clojure-nl (1)
- # clojure-norway (13)
- # clojure-sweden (5)
- # clojure-uk (6)
- # clojurescript (5)
- # community-development (2)
- # cursive (4)
- # datahike (5)
- # datalevin (7)
- # datomic (11)
- # emacs (8)
- # events (1)
- # gratitude (1)
- # hoplon (5)
- # hyperfiddle (1)
- # lsp (59)
- # matrix (11)
- # polylith (14)
- # portal (3)
- # practicalli (1)
- # rdf (2)
- # reitit (9)
- # releases (3)
- # rum (5)
- # yamlscript (6)
Are there any good examples of showing/hiding different pages? (I know it's supposed to be a single-page app)
https://github.com/mynomoto/buuummm/blob/main/src/buuummm/view.cljs#L416 I would use cond-tpl as in this app
👍 1
I'm struggling to come up with a good model for how to show and hide different pages/panels, based on state.
Should I use defelem
s as the pages?
I don't think you should use defelem
as pages even if you could.
defelem
is mainly to create other components that have the same way of passing arguments as the pre existing ones. I use common functions as pages and defelem
for custom elements.
👍 1
okay, that makes sense. Thank you again for the help