Skip to content

yoctu/redspher-react-components

Repository files navigation

redspher-components

reusable components for redspher

NPM JavaScript Style Guide

Install

npm install --save redspher-components

Usage

import { MyComponent } from 'redspher-components'
import 'redspher-components/dist/index.css'

class Example extends Component {
  render() {
    return <MyComponent />
  }
}

doc

Online documentation

contribute

Clone repo https://github.com/yoctu/redspher-react-components

install node modules

npm install

compile components

npm start

check demo and develop

cd example
npm start

run tests

npm run test

test watch (jest only)

npm run test:watch

create a new folder with you component name, check the structure of the other components. We use scss modules create tests

import component in src/index.js

create examples in example folder.

DONT FORGET TO UPDATE NPM VERSION !!!

npm version [<newversion> | major | minor | patch ]

License

MIT © yoctu