New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-new-component

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-new-component

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

latest
Source
npmnpm
Version
1.0.6
Version published
Weekly downloads
13
225%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

reactjs

FAQs

Package last updated on 24 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts