It's the same old OO (state+methods) vs FP (lexical scope + closures) thing, in the dom now.
A lot of react state libs are also tweaking around this idea.
Not long ago a jotai class made me see this.
<Component /> <Component />
so to avoid that
<Provider> <Component /> <Provider> <Component />
<new class={Component} />
It's the same old OO (state+methods) vs FP (lexical scope + closures) thing, in the dom now.
A lot of react state libs are also tweaking around this idea.
Not long ago a jotai class made me see this.
these components use the same state defined in the sourceso to avoid that
which now intercepts the state object creation to have two independent states. I have a feeling that soon we'll see strange