@m31271n/generator-react-component

Scaffold out a React component.

Usage no npm install needed!

<script type="module">
  import m31271nGeneratorReactComponent from 'https://cdn.skypack.dev/@m31271n/generator-react-component';
</script>

README

generator-react-component

code style: prettier Dependency Status DevDependency Status Travis Build Status NPM Downloads

Scaffold out a react component.

Features:

  • Code style without semicolon
  • Prettier code formatter
  • Git pre commit hook
  • Preview via Storybook
  • Test via Jest

Install

$ npm install -g yo @m31271n/generator-react-component

Usage

With yo:

$ yo @m31271n/react-component

There are multiple command-line options available:

$ yo @m31271n/react-component --help

Tip

Use chalk if you want colors in your CLI.

Related Packages

License

MIT © m31271n