Package Exports
- inferno-hydrate
- inferno-hydrate/dist/index.esm.js
- inferno-hydrate/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (inferno-hydrate) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
inferno-hydrate
Same as render(), but is used to hydrate a container whose HTML contents were rendered by Inferno-server. Inferno will attempt to attach event listeners to the existing markup.
Install
npm install inferno-hydrateUsage
import { hydrate } from 'inferno-hydrate';
hydrate(
createElement('div', { className: 'test' }, "I'm a child!"),
document.getElementById("app")
);