4 ms·
In a recent project, I wrote my own template class that works kind of like Lithtml but without any kind of magic reactivity. It just rerenders when properties a
by numtel 4y ago
In a recent project, I wrote my own template class that works kind of like Lithtml but without any kind of magic reactivity. It just rerenders when properties are updated through the "set()" method.
https://github.com/numtel/democratic-capital/blob/master/src/utils/Template.js https://github.com/numtel/democratic-capital/blob/master/src...
An example template:
https://github.com/numtel/democratic-capital/blob/master/src/components/Overview.js https://github.com/numtel/democratic-capital/blob/master/src...