Server-Side
Server-side rendering.
Using Plate in a Server Environment
Plate can be utilized in server-side environments, enabling operations like content manipulation without a browser. This is particularly useful for scenarios such as generating static content, processing editor content on the server, or working with React Server Components.
Creating a Server-Side Editor
To use Plate on the server, you can leverage the createSlateEditor
function. This allows you to create and manipulate Slate documents without a DOM environment.
Example: Generating Markdown in a React Server Component
Here's the output of Plate generating Markdown from a Slate value within a React Server Component: