0.4.1 • Published 4 years ago

@scalable/reactgen v0.4.1

Weekly downloads
16
License
MIT
Repository
github
Last release
4 years ago

@scalable/reactgen

TypeScript Code Generator for React components, Redux and more done right.

Installation

  • npm install @scalable/reactgen --save-optional

Usage

Most of the commands should be executed in the folder where the target should be created.

Stateless Functional Components

npx schematics @scalable/reactgen:sfc <ComponentName> [parameter]

Parameters

TypeNameDescriptionDefault
required {string}nameThe name of the component.none
{string}pathThe path to create the componentnone
{boolean}subfolderFlag to indicate if a dir is createdtrue

Credit

This project is inspired by schematics-react