Render React components through the command line
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
test/fixtures
.gitignore
LICENSE-MIT
README.md
index.js
package.json

README.md

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

Examples

Without passing props:

react-cli my-component.jsx

Passing props

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