react-package-template
v1.0.0
Published
React Basic Node Package Template in order to create a new components that can be consumed.
Downloads
9
Maintainers
Readme
React Package Template
This is basic initial react component template, if you want to build a new react component that you or others can consume (import
/require
) via npm registery for example - you can build the component (inside src
) and publish it to npm.
How To Use
- Install with
npm install my-component-name --save
. - Import to your "js" file:
import Input from 'my-component-name';
. - In your code, use like that:
<MyComponentName onChange={this.test}/>
. - See
example/basic.js
as reference.
Features
Todo
Bugs
Screenshot
How to Contribute
- Fork the project (top right button, in github UI).
- Clone the forked repository to your machine.
- Run
npm install
. - Run
npm start
(or betternpm run demon
in case you havenodemon
, otherwise runnpm install nodemon -g
). - Create a new branch.
- Go to
http://localhost:3334/
. - Write your code, commit and push to your own forked repository in the new branch.
- Open a PR and wait for someone to review and merge to master.