Skip to content

Commit

Permalink
Fix a typo in 2nd example
Browse files Browse the repository at this point in the history
  • Loading branch information
octet-stream committed May 6, 2024
1 parent 86a923e commit 21aab03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ createRoot(root).render(<App />)
You can opt-out by enabling strict mode in `SlateView`, or `useSlateToReact`, or `transformNodes` options.
When enabled, `NodeNoIdFieldError` will be thrown if any node without the `id` field is encountered.

2. Use can use `slate-to-react` with React Server Components too. For that use `transformNodes` function directly:
2. You can use `slate-to-react` with React Server Components too. For that use `transformNodes` function directly:

```ts
import type {FC} from "react"
Expand Down

0 comments on commit 21aab03

Please sign in to comment.