Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

inferno-hydrate

infernojs459.5kMIT9.0.10TypeScript support: included

Hydrate plugin to inferno. This package can be used to reuse server side rendered html

babel, react, inferno, framework, interfaces, user interfaces, vdom

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

Usage

import { hydrate } from 'inferno-hydrate';

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

changelog