1.1.2 • Published 7 years ago

react-sugar v1.1.2

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

reactsugar

Creates the boilerplates for react component stacks

Compatible

nodejs version >= 6.2.*

Purpose

Rather than manually creating three files each time we want to write a react component. This tiny script helps to create following three files in one command!

  1. package.json
  2. name.jsx
  3. nameStyles.css

the first letter of name is capitalized

Install

npm install -g react-sugar

and export your global node path as follow:

echo 'export NODE_PATH="'$(npm root -g)'"' >> ~/.bash_profile && . ~/.bash_profile

if you don't export your NODE_PATH as global variable, reactsugar will try to find boilerplates folder in your current working directory.

Usage

reactsugar home ---> creates boilerplates under your current working directory.

Pure function component

reactsugar home -p ---> does the same as the above, just that the component is now in pure function.

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.4

7 years ago