An Atom package for generating React components.
I got sick and tired of typing the following files:
index.js
:
import ComponentName from "./ComponentName";export default ComponentName;
ComponentName.js
:
// @flowimport React, { Component } from "react";import s from "./ComponentName.scss";export default class ComponentName extends Component<{}> {render() {return (<div><h1>ComponentName</h1></div>);}}
And also a blank ComponentName.scss
file, so this package basically does that for you.
Also supports stateless components. React Native support coming soon.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.