This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-02-13
Channels
- # announcements (1)
- # babashka (28)
- # beginners (72)
- # biff (6)
- # calva (15)
- # clerk (14)
- # clj-otel (4)
- # cljdoc (4)
- # clojure (121)
- # clojure-europe (61)
- # clojure-nl (2)
- # clojure-norway (63)
- # clojure-uk (5)
- # datahike (35)
- # datalevin (37)
- # datomic (7)
- # emacs (2)
- # fulcro (6)
- # gratitude (1)
- # honeysql (2)
- # hyperfiddle (38)
- # malli (9)
- # matrix (24)
- # meander (4)
- # off-topic (10)
- # polylith (8)
- # reagent (2)
- # releases (1)
- # shadow-cljs (8)
- # spacemacs (4)
- # specter (1)
- # squint (5)
- # tools-deps (3)
Hi, I have a need to put HTML file in the middle of reagent component. (I'm using reagent, reitit and shadow-cljs) So something like
/>
>
I don't want to turn html into a hiccup, I would like to serve that html file in the middle of my reagent code. And for it to be as simple and easy to manage as possible.
Best option would be to refer to html-file with just the path.
I have two options in mind:
1. Use dangerouslySetInnerHTML and just paste the html string there
2. Use reagent inside reagent, so I will have there a <div id=second-root> and it will start second root there with the html file rendered
But both of those options are not optimal, do you have an idea what could be done to achieve that?