reactcomposerjs v0.1.4
reactcomposerjs
This package is a different way to work with React.js, by creating a boilerplate to seperate your Views, Routes and Components. You can create a new React.js project with a simple command and generate new class Components with his associated blank stylesheet for faster developpment.
Installation
npm install -g reactcomposer
Usage
Creating a new React.js Project
Generating a new Reactj.js project has never been this easy. Just run the command bellow.
reactcomposer --init projectname
This command will install the latest and greatest version of React.js by running npx create-react-app projectname
followed by installing some react-router-dom with npm install react-router-dom --save
. Finally, the script removes the default React app boilerplate and generates a new one with the reactcomposer View/Routes/Components/Providers structure.
Generating a component
In this exemple, a component called MyComponent will be generated. By default: "/" will generate a component in the current directory where your command line was typed.
reactcomposer --component /MyComponent
Adding a path to the start of your component will enable you to generate it in a child folder. Note that if the specified folders don't exist, they will be generated as well.
reactcomposer --component /somefolder/someotherfolder/MyComponent
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.