HN2new | past | comments | ask | show | jobs | submitlogin

This is a sketch of a raw custom element with no library for sugar. A library that assisted in the pattern would presumably implement the accessors for you.

ES/TypeScript decorators would be an easy way to do this, or just a function that fixes up the class after declaration.



So implement the accessors logic and invalidation logic, centralize the rerender scheduling and you've rebuilt React.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: