Fork me on GitHub
#hyperfiddle
<
2023-05-04
>
markaddleman17:05:10

Is there a story for vanilla javascript to construct and mount multiple electric components within a single dom?

2
markaddleman17:05:47

I have an existing javascript app and I’m thinking about how to incrementally electrify it.

markaddleman17:05:29

From what I can tell, I can boot multiple electric fns but only one can be hooked up to the reactor at a time.

Dustin Getz17:05:51

you could bind dom/node multiple times from the same boot

markaddleman17:05:39

Thanks, that makes sense

Dustin Getz17:05:13

I don't immediately see any technical reason why you can't have multiple electric instances simultaneously but I think we would prefer you not do that

Dustin Getz17:05:30

ah, they will collide on trying to connect to the server

markaddleman17:05:43

🙂 I feel like I’m about to do a bunch of things that someone is going to prefer I not do

🙂 1
Dustin Getz17:05:58

happy to walk with you on this journey

markaddleman17:05:49

Let me ping you back when I have some skeleton code that I can easily play with

👍 1