Skip to content
This repository was archived by the owner on Apr 27, 2020. It is now read-only.

Repository files navigation

React Generate Component

Build Statuscodecov

This is a tool to generate React Component files.

Installation

$ npm install -g @lezhin/react-generate-component

Usage

CLI

Usage: rgc [options] <name ...>
Options:
-V, --version output the version number
-c, --config <path> set a custom path to look for a config file
-o, --override set a allow files to override
-h, --help output usage information

Node.js

const rgc = require('@lezhin/react-generate-component').generate;
const componentNames = ['hello', 'world'];
const customConfig = {};
const allowOverride = false;
rgc(componentNames, customConfig, allowOverride).then(() => {
console.log('Generated!');
});

About

This is a tool to generate React Component files.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages