Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 543 Bytes

README.md

File metadata and controls

31 lines (18 loc) · 543 Bytes

react-cli

Installation

npm install -g react-cli react

Usage

Usage: react-cli [source file]

Options:

  -h, --help           output usage information
  -V, --version        output the version number
  -p, --props [props]  Props to pass into the component
  -s, --static         Use static render

Examples

Without passing props:

react-cli my-component.jsx

Passing props

react-cli my-component.jsx -p "{\"foo\": \"bar\"}"

With static render

react-cli my-component.jsx -s