hoplon

2024-05-22T20:16:50.421839Z

Are there any good examples of showing/hiding different pages? (I know it's supposed to be a single-page app)

2024-05-22T22:20:38.730399Z

https://github.com/mynomoto/buuummm/blob/main/src/buuummm/view.cljs#L416 I would use cond-tpl as in this app

👍 1
2024-05-22T21:22:14.386589Z

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 defelems as the pages?

2024-05-23T11:01:58.944999Z

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
2024-05-23T14:17:11.787629Z

okay, that makes sense. Thank you again for the help