💪 fit-html
3KB web components + lit-html + redux library without bloat.
Overview
fit-html is a combination of lit-html, web components and redux bringing efficient rendering and a functional application architecture together. Yet, the total size of the framework is below 3KB, including dependencies.
Small Example
You need the following:
;;;
Set up redux store:
const todos = { }; const store = ;
Define actions and view:
{ return type: 'ADD_TODO' text: `Hello ` ;} const render = html` Add `; const TodosApp = render; // Define the custom element.//// The withStore mixin is only required for the root element of your// app. All other 💪-elements will get the redux store from that element.customElements;
index.html
:
My cool 💪-html app
Please see https://github.com/Festify/fit-html-demo for more and larger examples.
Compatibility
💪-html is written for use with evergreen browsers. Not so much for Internet Explorer (though we strive to become compatible with IE11 once lit-html itself is).
License
MIT