0.1.5 • Published 5 years ago

cws-react-components v0.1.5

Weekly downloads
15
License
MIT
Repository
github
Last release
5 years ago

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.