react-pod
v1.0.2
Published
Creates a React component pod
Downloads
1
Readme
React Pod
This is a basic command-line tool to assist with boilerplating React Pods. Pod is a term borrowed from Ember.js but also aptly describes the file configuration here.
Installation
$ npm install -g react-pod
Usage
$ react-pod MyComponentName
MyComponentName
-- MyComponentName.js
-- index.js
-- mycomponentname.css
MyComponentName.js
import React from 'react';
import { mycomponentname } from './mycomponentname.css';
const MyComponentName = () => {
};
MyComponentName.PropTypes = {
};
export default MyComponentName;
index.js
export { default } from './MyComponentName';
mycomponentname.css
.mycomponentname {
}