JSPM

  • Created
  • Published
  • Downloads 144637
  • Score
    100M100P100Q184915F
  • License MIT

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

Package Exports

  • inferno-hydrate

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

Usage

import { hydrate } from 'inferno-hydrate';

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