4 ms·
Separation of concerns is a good goal, and your reaction is popular with people first seeing React (including me, several months ago!). But consider that usual
by spicyj 13y ago
Separation of concerns is a good goal, and your reaction is popular with people first seeing React (including me, several months ago!).
But consider that usually JS to control a view is inextricably linked to the underlying HTML and you need to modify both whenever making any change regardless -- since that's the case, you might as well combine all of the code and markup for the view in one place. Work to separate concerns, not programming languages.