Closed danielo515 closed 3 years ago
differently from uhtml and lighterhtml, hyperHTML doesn't have a stack concept in core, meaning same reference object, with same ID, in two places, will simply move the same node in the last place that used such reference.
However, what I see here is a replica of what uland or neverland do, meaning there's nothing inherently wrong with your pattern, but hyperHTML has its own component system which, if not used, is sleeping code with no meaning, while those other libraries are born to provide this very same patern, and likely better at that, without you ever needing to reference explicitly anything.
I hope this answer helps 👋
Yes @WebReflection , it helps. I'll take a look into neverland then. I started using hyperHtml and I was wondering when would I should switch to one of the smaller alternatives. Probably the time is now.
P.S. for an "as close as React" solution, I suggest checking kaboobie out too 👍
thanks for the suggestion, but being as close to react as possible is not a requirement for me 😄
While using hyperhtml I found myself following this pattern: