Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will styled-components ever support latest react features (server components, streaming, concurrent redering) ? #4265

Open
jonrrivera opened this issue Feb 22, 2024 · 6 comments

Comments

@jonrrivera
Copy link

Been a long time fan / user of styled-components. But recently I have found myself using tailwind 馃槼 because I want to leverage latest React (Server Component) features on Next.js.

I would hugely prefer to continue using styled-components since I love the syntax and already have so many projects using it. But im mainly wondering the interest and possibility for styled-components to adopt these latest react features? is this something this library is looking to get into?

Would love to hear some thoughts. thank you !!

@tim-soft
Copy link

Vercel has some vague statement in their docs

https://nextjs.org/docs/app/building-your-application/styling/css-in-js

We're working with the React team on upstream APIs to handle CSS and JavaScript assets with support for React Server Components and streaming architecture.

I have not seen any updates since they posted this many months ago

Anyone feel free to clue me in if I've missed something

@eualex
Copy link

eualex commented Apr 8, 2024

@quantizor ?

@haytherecharlie
Copy link

This library is going to die if we don't start supporting Server Components. I also have to use Tailwind and it makes me so sad.

@quantizor
Copy link
Contributor

quantizor commented May 17, 2024

It would be a different library if we dropped use of context, which is required for server components. No plans to do so. React is welcome to introduce a useful API we can switch to.

@tim-soft
Copy link

@leerob @timneutkens @acdlite @gaearon is runtime css-in-js in React dead?

@quantizor
Copy link
Contributor

They've been pretty clear that you can still use whatever you want in client components, it's just they won't be as optimized. But like with all things it's a tradeoff. A runtime means you have to ship the runtime, it can't just be compiled away unless your site is entirely static.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants