Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including rcg with all npm packages installed. Try it out:

var rcg = require("rcg")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

rcg v0.2.0

react component generator


React Component Generator.

Installation: npm i -g rcg

Usage: rcg

  RCG : React Component Generator
  Please pass component type and name
  Type can be one of: function class test dir
  If dir, please also pass function or class
    rcg type|dir [type] name [options]
    -s       | Use semicolons
    -f       | Use four spaces
    rcg function Foo
    rcg dir class bar
    rcg test quux -s

By default, RCG assumes:

  • You're using at least ES2015
  • Standard style (no semicolons, two spaces)
  • Jest + React Test Renderer + snapshots + Sinon

License: WTFPL

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free