Giter VIP home page Giter VIP logo

reactez's Introduction

reactez

A simple React CLI for Component and Page creation.

Getting Started

These instructions will get you a copy of the project up and running on your local machine.

Installation

npm i -g reactez

Usage

With the new Version of reactez (v1.1.0) A Generate feature has been added. It's simple and easy.

Just type

rez generate

or

rez g

This takes you to an easy-to-use prompt that helps you to generate Components and Pages.

Component generation

Functional Component

rez component [COMPONENTNAME]

or

rez c [COMPONENTNAME]
  • This command creates a default Functional Component.
  • The component is created at /src/components/.
  • The generated component consists of a .jsx(component file) and a .css(style sheet) files.
  • Generated component comes with a Functional Component boilerplate with the style sheet imported.

Class Component

rez component [COMPONENTNAME] -c

or

rez c [COMPONENTNAME] -c
  • This command creates a Class Component.
  • The component is created at /src/components/.
  • The generated component consists of a .jsx(component file) and a .css(style sheet) files.
  • Generated component comes with a Class Component boilerplate with the style sheet imported.

Alternate flag:

rez component [COMPONENTNAME] --class

or

rez c [COMPONENTNAME] --class

Page generation

Functional Component Page

rez page [PAGENAME]

or

rez p [PAGENAME]
  • This command creates a default Functional Component Page.
  • The component is created at /src/pages/.
  • The generated page consists of a .jsx(component file) and a .css(style sheet) files.
  • Generated page comes with a Functional Component boilerplate with the style sheet imported.

Class Component Page

rez page [PAGENAME] -c

or

rez p [PAGENAME] -c
  • This command creates a Class Component Page.
  • The component is created at /src/pages/.
  • The generated page consists of a .jsx(component file) and a .css(style sheet) files.
  • Generated page comes with a Class Component boilerplate with the style sheet imported.

Alternate flag:

rez component [PAGENAME] --class

or

rez c [PAGENAME] --class

Author

Chirag Chandrashekhar -My github

reactez's People

Contributors

cchirag avatar

Stargazers

Roman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.