Server rendering and hydration

Hydration identifierPrefix

Use the same root prefix for server and client useId values; use distinct prefixes across independent roots.

Formal Syntax & Structure

react syntaxreact
hydrateRoot(host, <App />, {identifierPrefix: "garden-"})

Working Example

Example Snippetreact
hydrateRoot(host, <App />, {identifierPrefix: "garden-"})
React Reference