react-component-creater
To use this task, we can create react component based on following config:
import React, { Component } from 'react';
class Template extends Component {
constructor(props) {
super(props);
}
render() {
return (
Template
);
}
}
Template.propTypes = {};
export default Template;
Installation
npm install -g react-component-creater
Usage
RRC -n [component-name] -d [destination director]
Parameter | Description |
---|---|
-n | the name of the component, this parameter is requires |
-d | the director of the component, defalut is components/ |