4 ms·
So basically hooks can be used as state mixins. I wonder if we can wrap them entirely up in a @decorator and trivially apply them to SFC. Also makes me wonder
by Waterluvian 8y ago
So basically hooks can be used as state mixins. I wonder if we can wrap them entirely up in a @decorator and trivially apply them to SFC.
Also makes me wonder about the same concept for class components.