Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

frint-react-server

5.7.2 • Public • Published

frint-react-server

npm

Server-side React package for Frint


Guide

Installation

$ npm install --save react react-dom prop-types frint-react frint-react-server

Usage

import { renderToString } from 'frint-react-server';
 
// import your App
import App from './path/to/core';
 
const app = new App();
const htmlOutput = renderToString(app);

API

renderToString

renderToString(app)

Arguments

  1. app (App): The Root App or Child App instance

Returns

String: HTML output as a string.

Keywords

install

npm i frint-react-server

Downloadsweekly downloads

1,713

version

5.7.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability