• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

create-react-component

An Atom package for creating templated React components.
parkroolucas
0.0.6 321
0
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

create-react-component

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:

// @flow 
 
import 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.

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by