3 ms·
Classes with state are a nightmare. You can never tell what has changed or where. Having the state in the hook system where it's visible to your tools and you c
by lmm 4y ago
Classes with state are a nightmare. You can never tell what has changed or where. Having the state in the hook system where it's visible to your tools and you can actually see what's changed between one render and the next is a huge win.
- gnaritas99 4y ago[dead]
- spankalee 4y agoYou can do that with classes too though. We use decorators to make class fields reactive and track what changed between renders.