|
|
|
|
|
by cmwelsh
1866 days ago
|
|
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. |
|