1.0.6 • Published 7 years ago

react-new-component v1.0.6

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

react-new-component

Create an initial '.js' file for reactjs component.

NPM Version NPM Downloads

Installation

$ npm install react-new-component -g

Usage

$ new-comp App

Then, you should get 'App.js' in your project root directory and it looks like this!

import React, { Component } from 'react'

export default class App extends Component {

    constructor(props) {
		super()
		this.state = {

		}
	}

    componentDidMount() {

	}

    render() {
        return(
            <div>
                this is a new component!
            </div>
        )
    }
}

const styles = {

}

Command Line Options

  Options:
    -h, --help       output usage information
    -V, --version    output the version number
    -s, --semicolon  use semicolon in file

License

MIT

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago