choojs / nanocomponent

πŸšƒ - create performant HTML components
https://leaflet.choo.io/
MIT License
366 stars 30 forks source link

update all deps #94

Closed ungoldman closed 4 years ago

ungoldman commented 4 years ago

updating for the sake of forking to add some convenience since we're still using this heavily at work and we've run into a lot of boilerplate. will send some upstream patches if they make sense

πŸ‘‹

ungoldman commented 4 years ago

@goto-bus-stop good note, i think that is wise

ungoldman commented 4 years ago

i drank coffee for the first time in two weeks and made this last night https://github.com/ungoldman/component

main differences from nanocomponent:

converted to class, no es5 support update returns true by default so doesn't need to be implemented for simple cases using auto-bind so all methods are bound to class instance by default switching to react-like props/children syntax to try to support passing children in a nested router type thing later update gets nextProps and lastProps for comparison ~maybe something else don't know~ trying out passing emit function to instantiation so it's bound once, probably will revise

bcomnes commented 4 years ago

Very cool.

Did some similar experimentation with the nano stack at hyperdivision:

https://github.com/hyperdivision/hui https://github.com/bcomnes/lighterhui

ungoldman commented 4 years ago

gonna release a major now if y'all don't mind

bcomnes commented 4 years ago

πŸ™thank you!