UNPKG

piral

Version:

The all-in-one piral package.

17 lines 586 B
import { hydrate } from 'react-dom'; import { runInstance } from './run'; import { getContainer } from './options'; /** * Sets up a new Piral instance and hydrates it using the provided options. * @param options The options to use when setting up the Piral instance. * @deprecated Use `createInstance` with `hydrate` directly. * @example ```ts import { hydrateInstance } from 'piral'; hydrateInstance(); ``` */ export function hydrateInstance(options) { return runInstance((app, selector) => hydrate(app, getContainer(selector)), options); } //# sourceMappingURL=hydrate.js.map