3 ms·
Logic, layout and style are inherently separate parts of a component. Separate concerns in other words. Ideally they should have separate definitions. This is t
by jf- 8y ago
Logic, layout and style are inherently separate parts of a component. Separate concerns in other words. Ideally they should have separate definitions. This is the cleanest and most maintainable structure.
The cycle seems to be to separate things clearly, then mix them back again, then separate them out again. I’ll happily skip the mixing part of this cycle.
However, that said I don’t want to give the impression that I’m being proscriptive here, other developers are perfectly free to have their own preferences just as I have mine.