UNPKG

react-init-class

Version:

A Simple npm module to create a react init class with a default constructor and render methods. It will create a class with the file name provided by -f parameter and in the path provided by -p parameter.

16 lines (13 loc) 311 B
import React, { Component as ReactComponent } from 'react'; class {ReactClassName} extends ReactComponent { constructor(props) { super(props); this.state = {}; } render() { return ( <div></div> ); } } export default {ReactClassName};