Eckehard
Eckehard
You can use this approach to use template literals, which is very fast too: ```JS // create element from innerHTML function html(s) { let d = div() d.innerHTML = s...
VanJS integrates with WebComponents easily: This is a counter component: ```JS const { button, span } = van.tags class MyCounter extends HTMLElement { // Elements and functions connectedCallback() { this.value...
Not sure how to do this. Any suggestion welcome. Let assume, there are 50 state objects, each changed 500 times per second on an irregular basis. But we want the...
It seems, VanJS already contains all it needs: ```JS 18: if (s.oldVal === curV) 19: changedStates = addAndScheduleOnFirst(changedStates, s, updateDoms, updateRate); ``` I added "updateRate" here with an initial value...
I made a demo to show the issue with state blocking. This creates 1000 div´s showing different states. This is updating every 1/100 second which may run fluently on a...