react-magic-cli

A CLI for React to generate projects and components using the command line.

Usage no npm install needed!

<script type="module">
  import reactMagicCli from 'https://cdn.skypack.dev/react-magic-cli';
</script>

README

React Magic CLI

A CLI for React to generate projects and components using the command line.

Installation

npm i -g react-magic-cli

Usage

rgc <command> <resource-name>
react-magic <command> <resource-name>

rgc new MyProject

react-magic component MyComponent

Current commands

new                     Creates a project based on your answers
component               Creates a component in ./src/components
hook                    Creates a custom hook in ./src/hooks
hoc                     Creates a Higher-Order Component in ./src/hoc

Examples

Project generation

rgc new MyProject

Simple component generation

rgc component MyComponent