|
|
|
|
|
by brundolf
1739 days ago
|
|
I'm not familiar with JSS, but styled-components works by creating a whole new React component for each layer of styling that you'd traditionally use a CSS class for. And despite appearances React components aren't just function calls, they're persistent objects that carry their own overhead. So doing things this way seriously inflates the work that has to happen at runtime. Using "plain styles" in a component-oriented architecture relies on convention more than I'd like it to, but... the cost of the CSS-in-JS solutions I've seen just seems too high to be worth it. I don't know what the solution is. |
|