jorgebucaran / hyperapp

1kB-ish JavaScript framework for building hypertext applications
MIT License
19.07k stars 779 forks source link

[question] using real dom nodes #25

Closed yoshuawuyts closed 7 years ago

yoshuawuyts commented 7 years ago

heya, cool lib!

Got a question: have you considered using real dom nodes rather than virtual ones for this lib? Something we've got going with choo is that anything that produces real dom nodes will work natively - e.g. charts, forms, all the stuff.

Figured it might be cool if hyperapp instances could interop with choo and the other way around - making it easy to mount inside each other and like reuse packages and stuff. I think especially with nanomorph slowly stabilizing this might become exciting.

Was mostly wondering about your reasoning - thanks! :sparkles:

see also

jorgebucaran commented 7 years ago

Hi @yoshuawuyts, thanks for stopping by :)

Here's the issue that touched on Hyperapp design goals.

Have you considered using real DOM nodes rather than virtual ones for this lib?

Yup. Hyperapp's first prototype used morphodom actually.

Integration with 3rd party components like CodeMirror / Ace9 was too difficult (and crucial for my project at work), so I switched to virtual-dom, then Snabbdom and eventually wrote my own virtual DOM.

jorgebucaran commented 7 years ago

Going to close here as virtual DOM is a key concept in Hyperapp and there are not going to be any changes related to this in the foreseeable future.