Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

make-new-component

EricPuskas4MIT2.0.4

CLI for creating new React components

react, reactjs, cli, component

readme

Create a new React component

Usage

Install via NPM:

# Using Yarn:
$ yarn global add make-new-component

# or, using NPM
$ npm i -g make-new-component

Run:

$ cd PROJECT_DIRECTORY
$ make-new-component Button
# or, using npx
$ npx make-new-component Button

Typescript support

Run:

$ cd PROJECT_DIRECTORY
$ make-new-component Button -ts
# or, using npx
$ npx make-new-component Button -ts