Skip to content

believeitcould/react-new-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published