Skip to content

caioblima/react-scaffolding

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Scaffolding

Tired of duplicating that old base component for creating a new one? React Scaffolding helps you to Scaffold various types of React Components quickly

Just run

npx react-scaffolding --name=yourComponentName --option=[function|class|pure]

Or

Install

npm install -g react-scaffolding

With React Scaffolding you can create the following types of React Components:

  • Function
  • Class extending PureComponent
  • Class extending Component

Example

$ react-scaffolding --name=my-component --option=function

Will create a folder named my-component with the following files:

my-component.js

import React from 'react'
import './mycomponent.css'

const MyComponent = (props) => (
  <div></div>
)

export default MyComponent

my-component.css

.my-component { }

Options

--name: string (required) Your component name

--option: function | class | pureComponent (required) The template that will be used for create your component

--path: string (optional) The path that the component will be placed.

License

MIT ©

About

A simple command line tool for scaffold React components

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%