React scope
Use JuliyaScope with trusted or sanitized HTML, or useJuliyaScope for DOM owned by an external renderer. Ordinary JSX should use JuliyaText.
Render owned HTML
Use trusted or sanitized HTML with JuliyaScope. Juliya is not an HTML sanitizer. SSR first renders original HTML, then enhancement occurs after hydration.
tsx
import { JuliyaScope } from '@oddmash/juliya/react';
<JuliyaScope html={sanitizedHtml} config={{ include: ['p'] }} />React ownership
Use useJuliyaScope(config) on DOM owned by an external renderer. For ordinary React-managed JSX, use JuliyaText or useJuliya; do not mutate React-owned children with a scope.