Unverified Commit bdbc30f1 authored by kentobento's avatar kentobento Committed by GitHub

docs: Fix grammar in Client Components section (#58065)

parent 1d5c78b9
...@@ -54,7 +54,7 @@ export default function Counter() { ...@@ -54,7 +54,7 @@ export default function Counter() {
} }
``` ```
The diagram below shows nested components, using `onClick` and `useState` in `toggle.js` will cause an error if the `"use client"` directive is not defined. This is because, by default, the components are rendered on the server where these APIs are not available. By defining the `"use client"` directive to `toggle.js`, you can tell React to render the component and its children on the client, where the APIs are available. The diagram below shows that using `onClick` and `useState` in a nested component (`toggle.js`) will cause an error if the `"use client"` directive is not defined. This is because, by default, the components are rendered on the server where these APIs are not available. By defining the `"use client"` directive in `toggle.js`, you can tell React to render the component and its children on the client, where the APIs are available.
<Image <Image
alt="Use Client Directive and Network Boundary" alt="Use Client Directive and Network Boundary"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment