JSPM

inferno-server

4.0.0-3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 62257
  • Score
    100M100P100Q151307F
  • License MIT

Provides methods to render HTML strings from Inferno elements

Package Exports

  • inferno-server

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-server) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

inferno-server

Inferno package for working with the server

This package serves as the entry point of the Server-related rendering paths. It is intended to be paired with the isomorphic Inferno, which will be shipped as inferno to npm.

Install

npm install inferno inferno-server

Contents

  • renderToString

Usage

import Inferno from 'inferno';
import InfernoServer from 'inferno-server';

InfernoServer.renderToString(<div>Hello world</div>, container);