From c42bae063d986e26562fa1a714228fd8cd90ab00 Mon Sep 17 00:00:00 2001 From: Henrique Limas Date: Wed, 22 Feb 2023 18:54:49 -0800 Subject: [PATCH] Update RFC 0188 with latest RSC module convention --- text/0188-server-components.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text/0188-server-components.md b/text/0188-server-components.md index 26e4ab3f..6d47bdd7 100644 --- a/text/0188-server-components.md +++ b/text/0188-server-components.md @@ -356,7 +356,7 @@ Key aspects of this process are described in detail below. ### Capabilities & Constraints of Server and Client Components -> ⚠️ NOTE: This section may feel intimidating, but you don’t need to memorize all of these rules to use Server Components. We have lint rules to help enforce these constraints based on the .server.js and .client.js naming convention. React will also provide clear runtime errors for any violations. While the list of the rules appears long, the intuition is simple: Client Components can’t access server-only features like the filesystem, Server Components can’t access client-only features like state, and Client Components may only import other Client Components. +> ⚠️ NOTE: This section may feel intimidating, but you don’t need to memorize all of these rules to use Server Components. React will provide clear lint, build, and runtime errors for any violations. While the list of the rules appears long, the intuition is simple: Client Components can’t access server-only features like the filesystem, Server Components can’t access client-only features like state, and Client Components may only import other Client Components. The main new concept introduced in this proposal is **Server Components**. In contrast, **Client Components** are the standard React components that developers are already familiar with: the name “Client Component” doesn’t mean anything new, it’s purely to distinguish them from Server Components. In this section we discuss some important differences between the capabilities of these two types of components.