2 ms·
For folks looking for a lightweight JS class that manages the lifecycle of Web Components, I have this little Template class I use in many of my front-end proje
by r3trohack3r 3y ago
For folks looking for a lightweight JS class that manages the lifecycle of Web Components, I have this little Template class I use in many of my front-end projects. It's able to manage the application state by pushing the state down through the application and bubbling changes up.
It's a 161-line file that's easy to reason about and modify as needed.
https://github.com/retrohacker/template https://github.com/retrohacker/template