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

Hooks are complicated, but state/props is just right. Both enables you to enforce boundary and make contained components. If props and state are mixed / diluted, the component won't know when to do re-render and there'll be too many things to track, and there'll be many classic issues such as cyclic dependency and sluggish performance of two-way data binding.

Hopefully you'll click on it someday



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

Search: