inferno-hydrate
TypeScript icon, indicating that this package has built-in type declarations

8.2.3 • Public • Published

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-hydrate

Usage

import { hydrate } from 'inferno-hydrate';

hydrate(
  createElement('div', { className: 'test' }, "I'm a child!"),
  document.getElementById("app")
);

Package Sidebar

Install

npm i inferno-hydrate

Weekly Downloads

83,774

Version

8.2.3

License

MIT

Unpacked Size

51.4 kB

Total Files

12

Last publish

Collaborators

  • havunen