Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


You can do that with classes too though. We use decorators to make class fields reactive and track what changed between renders.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: