WebReflection / lighterhtml

The hyperHTML strength & experience without its complexity 🎉
https://medium.com/@WebReflection/lit-html-vs-hyperhtml-vs-lighterhtml-c084abfe1285
ISC License
735 stars 20 forks source link

Different behaviour than hyperhtml #14

Closed vbargl closed 5 years ago

vbargl commented 5 years ago

I was experimenting with this library and found out that lighterhtml has different behaviour than hyperhtml. I used example from hyperhtml doc (tick) and used it with lighterhtml. The difference is that lighterhtml update whole DOM.

Lighterhtml: https://codesandbox.io/s/2jvkllr5r Hyperhtml: https://codesandbox.io/s/lp3wm5wvj7

I hope I did not misunderstood anything.

PS: It could be related to this https://github.com/WebReflection/augmentor/issues/8

vbargl commented 5 years ago

Sorry, my bad, everything works now?

WebReflection commented 5 years ago

@vbargl did you know both setInterval and setTimeout accepts extra arguments by standards since about ever so you can write setInterval(render, 1000, document.body, tick); directly?

vbargl commented 5 years ago

Ah, thanks... I'm still getting to use to all this magic. It's been about a week since I started to learn javascript, because of my website I'm creating and I have to say I REALLY LOVE your work. React and other stuff are too complex to setup and there is really too much work to get simple things done. I setup webpack, custom project structure and this beautiful set of tools under a half an hour. I have what I want where I want and using just a plain javascript not any JSX with babel. Really hate these two.

vbargl commented 5 years ago

Also, I really like idea of #useThePlatform and therefore I was thinking about polymer, but when I discover your tools I was really amazed and I have to try it on. It can completely support that idea in better way than polymer does.

WebReflection commented 5 years ago

I do appreciate your words, thanks a lot, glad I'm helpful to someone 🍻