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 digitalrcc with all npm packages installed. Try it out:

var digitalrcc = require("digitalrcc")

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

digitalrcc v1.1.3

create react component from commandline

react create component

create react component from command line

install : npm i -g digitalrcc;

use: digitalrcc name -e js -p -s css -d -r ;

use 2: digitalrcc name -e -S -s -d;

params:

-alias --fullname [optional] 'discription' 'default'

'-e, --ext ', 'extention of file', 'js';

'-p, --pureC [type]', 'extends with PureComponent', false;

'-s, --style [type]', 'include (or)css file';

'-d, --dir', 'create new directory', false;

'-r, --withRedux', 'file with redux', false;

'-S, --stateless', 'stateless component', false;

#update v1.1.1

  • lifecycle hooks added

#update v1.1.3

  • lifecycle issue fixed and commented

Metadata

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