3 ms·
Your components often get bloated since you have to account for subtle business logic differences between views.
by ec109685 7y ago
Your components often get bloated since you have to account for subtle business logic differences between views.
- stefanfisk 7y agoIsn't that what the container/component split is for? Presentation logic in a container, markup and styling in a component. If you need to reuse the same visual component in logically different contexts you create a new container that mangles the props as appropriate.
- ec109685 7y agoYeah, you can. I've just seen this result in really complicated components. Other styles of CSS naturally separate presentation from html markup generation, so the cost of forking and specialized components is much lower.