React integration

identifierPrefix

Use distinct prefixes for independent roots, matching server and hydration options.

Formal Syntax & Structure

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

Working Example

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