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

Absolutely. The best thing I did for my React code base was to separate the entire view layer from the logic layer. That literally means I had components called e.g. UserProfileView that were stateless and unit tested, and another set of components called e.g. UserProfile that managed state.

Push all your callbacks into a separate component.



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

Search: