---
title: "CSS in React Server Components"
url: https://daily.dev/posts/css-in-react-server-components-opbc3na6b
source_url: https://www.joshwcomeau.com/react/css-in-rsc/
type: article
source: "Josh W Comeau"
published: 2024-04-15T15:46:09.838Z
updated: 2024-05-09T08:22:04.995Z
tags: ["react", "styled-components"]
reading_time: 27
upvotes: 13
comments: 1
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# CSS in React Server Components

**[Josh W Comeau](https://daily.dev/sources/joshwcomeau)** · 27 min read · 13 upvotes · 1 comments

## Summary

React Server Components give us a new way to write server-exclusive code in React, but they have limitations and are not fully compatible with popular CSS-in-JS libraries. However, there are alternative CSS-in-JS libraries like Linaria and Pigment CSS that offer compatibility with React Server Components. Migrating from a styled-components application to a zero-runtime CSS-in-JS library may not be necessary unless there is a performance benefit or specific need for the new features.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.joshwcomeau.com/react/css-in-rsc/>

## Community discussion

Top comments from developers on daily.dev.

**@avizmarques** · 0 upvotes

> awesome content as always

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#react](https://daily.dev/tags/react), [#styled-components](https://daily.dev/tags/styled-components)

[View this post on daily.dev](https://daily.dev/posts/css-in-react-server-components-opbc3na6b)
