React is a JavaScript library for building user interfaces.
Shadow 1
Shadow 2
React Server Components (or RSC) is a new application architecture
designed by the React team.
We’ve first shared our research on RSC in an introductory talk and an
RFC.
To recap them, we are introducing a new kind of component—Server
Components—that run ahead of time and are excluded from your JavaScript
bundle.
Server Components can run during the build, letting you read from the
filesystem or fetch static content.
-
They can also run on the server, letting you access your data layer
without having to build an API. You can pass data by props from
Server Components to the interactive Client Components in the
browser.
- 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。
Since our last update, we have merged the React Server Components RFC
to ratify the proposal.
-
RSC combines the simple “request/response” mental model of
server-centric Multi-Page Apps with the seamless interactivity of
client-centric Single-Page Apps, giving you the best of both worlds.
-
React 使创建交互式 UI
变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React
能高效更新并渲染合适的组件。
- 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。