
ReactGo is now Homo neanderthalensis, and ReactGo should be Homo sapiens
LOL @ZeroCho .
Do you mean https://github.com/styled-components/styled-components? I went for a meetup awhile ago and was fascinated. However, I'm not sure whether it works well in server-side rendering.
@choonkending I am using it for ssr, and it's working fine. There were some issues with the Babel plugin, but if might be sorted now. Could be better to wait for v2 for more stable ssr and ++performance. Maybe @mxstbr could provide some info on current ssr status.
Also, see
Note: That image is to be taken with a grain of salt, neither of the creators of styled-components made it and it's not veryβ¦ logical. π
I use styled-components with SSR in production at https://daybook.co (that's based on Next.js) and it's working perfectly fine. The Babel plugin is still in beta while we're figuring out the kinks, but one doesn't need to use it for SSR with v1!
Thanks for that @mxstbr!
I _have_ been slowly transitioning to making layout or style components with css modules in other projects, and styled-components feels like logical transition for me.
(I really liked styled-components-magic-explained and react-children-deepdive btw! )
I think we do have to consider revisiting how we handle our css in reactGo. It's been bothering me for a while.
Reason:
Before we introduce styled-components π (if we decide to), I would like to have a think/understanding of what each tool's responsibility is. Im just conscious of adding new tools and increasing the number of dependencies we have to support.
I'm currently using styled-components on my personal "reactGo" (created on top of dvajs with SSR). Works pretty well and fits perfectly in this project. I'm just using css loaders for importing third-party css.
@mxstbr Thank you very much for that awesome project.
I have been trying out styled components as a spike for reactGo.
Pros:
Cons:
I am pretty sold on styled-components. Here is what I have done so far https://github.com/reactGo/reactGo/compare/master...choonkending:styled-components
I will slowly port the components across and see how we go from there.
π Let me know if you have any questions!
Most helpful comment
I think we do have to consider revisiting how we handle our css in reactGo. It's been bothering me for a while.
Reason:
Before we introduce styled-components π (if we decide to), I would like to have a think/understanding of what each tool's responsibility is. Im just conscious of adding new tools and increasing the number of dependencies we have to support.