8000 GitHub - PlenusPyramis/create-react-component: An Atom package for creating templated React components.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

PlenusPyramis/create-react-component

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An Atom package for creating templated React components.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 94.8%
  • CSS 5.2%
0