Files
react.dev/src/content/reference/react-markup/index.md
2024-08-14 09:27:41 +02:00

635 B

title
title
React Markup APIs

The react-markup package provides the ability to render standalone HTML from Server Components for use in embedded contexts such as e-mails and RSS/Atom feeds. It cannot use Client Components and does not hydrate. It is intended to be paired with the generic React package, which is shipped as react to npm.

APIs {/apis/}

These APIs can be imported from the React Server environment (e.g. in Server Actions):

  • renderToMarkup renders a non-interactive React tree with support for Server Components but not Client Components.