WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

ikovic/reactCodeGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reactCodeGenerator

A CLI tool for generating React components source code.

Installing

Install it as a global package:

npm install -g react-code-generator

Usage

Run the generator with the following command:

generate-component <componentName> (-p)

This will result in creating a fresh JavaScript file in the current location (where you called the command from). Name of the file will be according to argument.

If you use the '-p' flag, then the generated component will be written as a stateless functional component. Otherwise, a container component will be created as an ES6 module.

About

A CLI tool for generating React components source code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published