facebook / facebook/docusaurus

Support React Server Components

未关闭
#9,089 8 条评论 12 个 reaction 已指派 0 人 在 GitHub 查看
proposal
主要语言
TypeScript
星标
66.2k
派生
10k
平均合并
1 天 3 小时
30 天内合并 PR
52

描述

### Discussed in https://github.com/facebook/docusaurus/discussions/8758

Originally posted by **gaearon** March 10, 2023

CleanShot 2023-06-21 at 19 58 36@2x

---

I'd like to start a discussion on what it would take to get full RSC support in Docusaurus.

I imagine there could be different "layers" where support could be added, probably independent from each other:

- Support for writing [Pages](https://docusaurus.io/docs/creating-pages) as RSC.
- Support for treating [MDX](https://docusaurus.io/docs/markdown-features/react) as RSC by default.
- Porting the core of the site to RSC.

[This](https://www.mux.com/blog/the-building-blocks-of-great-docs) isn't super scientific but gives some anecdotal evidence that it's worth at least experimenting with:

Screenshot 2023-03-10 at 18 01 08

It also seems like a more scoped project than adopting RSC in a framework because Docusaurus is already constrained (always static output, no complex layouts).

Would love to hear your thoughts (and also happy to answer any integration questions).

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。