reg

regenr

React Generator

Showing:

Popularity

Downloads/wk

6

GitHub Stars

5

Maintenance

Last Commit

4yrs ago

Contributors

2

Package

Dependencies

4

Size (min+gzip)

5.1KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Regenr

React Generator

Summary

Regenr is a command-line interface that helps Generating ReactJs Components.

Installation

npm install -g regenr

Usage

$ regenr <path>/<componentName> [options]

Example:

$ regenr src/Components/Header

will provides:

Header.js

import React from 'react'
import styles from './Header.scss'

class Header extends React.Component {
  constructor(props) {
    super(props)
    this.displayName = 'Header'
  }
  render() {
    return (
      <div className={styles.Header}>
        {/* Your code here */}
      </div>
    )
  }
}

export default Header

Header.scss

.Header{
  /* Your stylesheet here */
}

index.js

export default './Header.js'

Options

-c [css preprocessor] or --css [css preprocessor]

Example:

$ regenr src/Components/Header -c less

Will provide .less integration

Screenshot

Screenshot

License

MIT

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100