cws-react-components
v0.1.5
Published
A library of CWS React Components wrapped by [create-react-app](https://github.com/facebook/create-react-app).
Downloads
4
Readme
cws-react-components library
A library of CWS React Components wrapped by create-react-app.
Installation
Run the following command:
npm install cws-react-components --save
Usage
import React, { Component } from 'react'
import { SomeComponent } from 'cws-react-components'
class HomePage extends Component {
render() {
return (
<div>
<SomeComponent />
</div>
)
}
}
Development and Storybook
You can easily develop and interact with your components by using Storybook. To run the local server, simply run:
$ npm i
$ npm run storybook
Navigate to http://localhost:9001 to view your stories. They should automatically update as you develop.
Storybook will pick up any story from the stories.js
file in a component folder.
Rinse is currently using the latest technology available, so you may need to update your Node versions to latest to accomodate Babel 7 and Webpack 4.