Skip to content

Render React components through the command line

License

Notifications You must be signed in to change notification settings

CustomButtons/react-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Render React components through the command line

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%