I know it seems like everyone is building micro this, micro that.
Micro services, micro frontends and now micro libraries?!
There are already e...
For further actions, you may consider blocking this person and/or reporting abuse
Heavy inspiration from Angular, I see.
It looks definitely nice, but there are some things that makes me wonder.
Those look like TypeScript decorators, and as such they're not ECMAScript. The specs are now on completely different paths. Maybe clarify that?
Using
innerText
instead oftextContent
or changing thedata
property of the text node is a peculiar choice.innerText
rearranges whitespaces under the hood and it's generally slower, but it can serve a purpose. Is this the case?There's another possible source of confusion here, as there's a stage 1 proposal called - you guessed - Emitter. It could be take a couple of years, sure, but still a possible name conflict.
All in all, it's a nice approach. There are several problems with Web Components, and you got to the point in targeting them. Boilerplate code, verbosity, non-intuitive interfaces... you name it. I think it's a step on the right direction.
Also, I like the choice of TypeScript.
innerText was a typo. It is textContent for sure π. Edited for clarity.
Ugh different spec paths for Decorators. I should read up on this more. From what I understand the stage 2 proposal is basically what TypeScript currently implements.
Didnβt know about Emitter, thatβs cool π.
Glad you like the direction. I definitely wanted to take some of the pain points away from developing Web Components.
Looks really sweet. I'll definitely give it a go this weekend.ππΌ