3 ms·
There's a running in circle feel about react right now for me. It's the same old OO (state+methods) vs FP (lexical scope + closures) thing, in the dom now. A
by agumonkey 4y ago
There's a running in circle feel about react right now for me.
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 />
these components use the same state defined in the source
so to avoid that
<Provider>
<Component />
<Provider>
<Component />
which now intercepts the state object creation to have two independent states. I have a feeling that soon we'll see
<new class={Component} />
strange