Zero-configuration CLI React static renderer
JavaScript HTML
Latest commit bc6f79e Sep 20, 2016 @jxnblk committed on GitHub Merge pull request #8 from npmcdn-to-unpkg-bot/npmcdn-to-unpkg
Replace npmcdn.com with unpkg.com

README.md

static-react

Zero-configuration CLI React static renderer

Build Status

Usage

npm i -D static-react

Static-react include babel presets and React – there is no need to install them separately with npm 3+.

CLI

static-react RootComponent.js > index.html

Options

  • -p, --props - pass props via a file that exports an object
  • --no-doctype - omit <!DOCTYPE html> from the beginning of the returned string

Example

See /example


MIT License