Closed ungoldman closed 4 years ago
@goto-bus-stop good note, i think that is wise
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
Very cool.
Did some similar experimentation with the nano stack at hyperdivision:
https://github.com/hyperdivision/hui https://github.com/bcomnes/lighterhui
gonna release a major now if y'all don't mind
πthank you!
assert.equal
toassert
since nanoassert removed all methods (ref: https://github.com/emilbayes/nanoassert/commit/3f7c9ff2c88a064e3d5038e2b6e2d640e2f09698)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
π