You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you considered adding in setState-like functionality?
Maybe something like this:
import{outerHTML}from'diffhtml';classStatefulComponentextendsComponent{setState(newState){this.state=Object.assign({},this.state,newState);// Patch the previously rendered node with the new VTree.outerHTML(this,this.render());}}
The text was updated successfully, but these errors were encountered:
I played around with it at first. For me, StatefulComponent and setAttribute are enough, and I'd suggest some external state container for anything more hardcore.
Have you considered adding in
setState
-like functionality?Maybe something like this:
The text was updated successfully, but these errors were encountered: