Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upReplace Aphrodite with Styled Components #4
Comments
|
As conversion tasks with Aphrodite will stay on the lowest priority, I think anything great / better at performance can be selected in favor of Aphrodite, unless @cezaraugusto are going to address the concerns with his forked Aphrodite. |
I am wondering if this would cause visual regressions if we won't keep BEM or other namings. |
|
Aphrodite was dropped in 3146191 but we're using vanilla CSS for now. We're going with CSS modules. Changed this issue's title to include this in the next milestone. |
|
Changed issue's title to match our last decision which was going with styled-components which was Implemented in v0.7.0 so closing |
Just wanted to start a conversation before we get too far and make sure we make the right choice with the technology we use to create the CSS for each compontent.
Some of the main issues I've had with aphrodite:
Some of the ideas we could promote through the choice of technology:
One tech choice I think is a good contender is css-modules. Like aphrodite, it provides a javascript object containing all the class names, and it compiles class names to unique strings that will only apply to components that use the name generated from that instance. However other advantages are:
Another popular choice these days is styled-components. I'm less familiar with it, and not overjoyed by what it's doing, but it's worth investigating. I think it has these advantages:
However it has the following disadvantages IMO: