Skip to content

Commit 45df410

Browse files
committed
[docs] Clarify RSC support in next.js
1 parent e442958 commit 45df410

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

apps/website/docs/getting-started/nextjs.mdx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1-
import Tabs from "@theme/Tabs";
21
import TabItem from "@theme/TabItem";
2+
import Tabs from "@theme/Tabs";
33

44
# Next.js
55

66
NativeWind can be used in a Next.js project that is already configured to use Expo or framework-less React Native Web.
77

88
Setting up a new Next.js project to use React Native Web is out of scope for these instructions.
99

10+
:::info
11+
12+
NativeWind will only work with the `/pages` router or on `"use client"` routes. RSC support is in progress.
13+
14+
:::
15+
1016
## 1. Setup Tailwind CSS
1117

1218
Simply configure Next.js as per [the Tailwind CSS Next.js setup guide](https://tailwindcss.com/docs/guides/nextjs)
@@ -41,6 +47,7 @@ NativeWind requires the `jsxImportSource` to be set to `nativewind`. The option
4147
}
4248
}
4349
```
50+
4451
</TabItem>
4552
<TabItem value="babel" label="Babel">
4653

@@ -59,6 +66,7 @@ module.exports = {
5966
};
6067

6168
```
69+
6270
</TabItem>
6371
</Tabs>
6472

0 commit comments

Comments
 (0)