frint-react-server
TypeScript icon, indicating that this package has built-in type declarations

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.

Dependents (1)

Package Sidebar

Install

npm i frint-react-server

Weekly Downloads

179

Version

5.7.2

License

MIT

Unpacked Size

7.21 kB

Total Files

6

Last publish

Collaborators

  • jbaudin
  • rmachado-travix
  • mmirandaalex
  • fahad19
  • markvincze
  • viacheslaff
  • etiennetremel