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

Yeah I've moved to this and it is working so far. Hooks manage the data and etc, UI components are almost exclusively just UI that get some props.

The UI components all have an else render if for some reason they're missing something / it avoids a crash (along with other easy to see / figure out protections)



I use an HoC to wrap components in an error boundary around key points to avoid total crashes.


Yeah I really should adopt that.




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

Search: