/create-react-component

Extremely small bash script I use for prototyping in React

Primary LanguageShell

Create React Component

Bash script that creates a React component with an empty stylesheet. Perfect for prototyping rapidly!

How to use

  1. Download the crc.sh file
  2. Move it into your $PATH directory
  3. Give it an alias
    alias crc = "crc.sh"
  4. Run from anywhere by typing crc <YOUR_COMPONENT_NAME>.

Example

Running crc Card will create the following folder structure

Card
├── Card.jsx
└── Card.scss