Skip to content

Commit 3f921d9

Browse files
fix(docs): single quote to double (#1416)
1 parent b2640bc commit 3f921d9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

apps/web/content/docs/getting-started/server-components.mdx

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RSCs can help reduce the size of the client-side JavaScript bundle and improve l
99

1010
## Usage
1111

12-
Without `'use client'` directive:
12+
Without `"use client"` directive:
1313

1414
```jsx
1515
import { Button } from "flowbite-react";
@@ -19,7 +19,7 @@ function Component() {
1919
}
2020
```
2121

22-
With `'use client'` directive:
22+
With `"use client"` directive:
2323

2424
```jsx
2525
"use client";
@@ -31,7 +31,7 @@ function Component() {
3131
}
3232
```
3333

34-
Incorrect: without `'use client'` directive and user event passed as prop (`onClick`) resulting in error:
34+
Incorrect: without `"use client"` directive and user event passed as prop (`onClick`) resulting in error:
3535

3636
```jsx
3737
// errors
@@ -85,7 +85,7 @@ function Component() {
8585

8686
## Support
8787

88-
All Flowbite React components are server-ready, meaning they can be rendered inside React Server Components without the need of `'use client'` directive at the top of the file.
88+
All Flowbite React components are server-ready, meaning they can be rendered inside React Server Components without the need of `"use client"` directive at the top of the file.
8989

9090
Here's a list of all Flowbite React components that are fully rendered on the server:
9191

@@ -95,6 +95,6 @@ Here's a list of all Flowbite React components that are fully rendered on the se
9595

9696
User event props (such as `onClick`, `onBlur`, ...etc) DO NOT work in React Server Components.
9797

98-
To pass any user events to a Flowbite React component (such as `onClick`, `onBlur`) the parent component must have the `'use client'` directive.
98+
To pass any user events to a Flowbite React component (such as `onClick`, `onBlur`) the parent component must have the `"use client"` directive.
9999

100100
Only serializable data can be passed to a server component as props (eg: functions will not work).

0 commit comments

Comments
 (0)