Skip to content

Commit 9e28542

Browse files
committed
update documentation
1 parent 34e7ceb commit 9e28542

File tree

1 file changed

+1
-4
lines changed
  • docs/src/content/introduction

1 file changed

+1
-4
lines changed

docs/src/content/introduction/ssr.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ scope: null
99
# Server Side Rendering
1010

1111
In frameworks such as Next.js 13+, context is fully supported within Client Components, but it cannot be created or consumed directly within Server Components. This is because Server Components have no React state (since they're not interactive), and context is primarily used for rerendering interactive components deep in the tree after some React state has been updated.
12-
Victory uses `createContext` to perform its operations and it must be rendered client side by adding the following directive in your components when used in a framework with Server Side Component support.
13-
14-
```use client```;
15-
12+
Victory uses `createContext` to perform its operations and it must be rendered client side by adding the `use client` directive in your components when used in a framework with Server Side Component support.
1613

1714
```jsx
1815
"use client";

0 commit comments

Comments
 (0)