common-components
v1.0.5
Published
Common Components
Downloads
144
Readme
common-components
Common Components
Install and Usage
npm i -S common-components
In React component:
import * as React from 'react'
import * as ReactDOM from 'react-dom'
import {Button} from 'common-components'
class App extends Component {
render() {
return (
<Button text='Click Me' />
)
}
}
ReactDOM.render(
<Button text='Click Me' />,
document.body
)
Running
Clone the repository and install dependencies.
npm install
Running and building
To start in development mode with HRM:
npm run start
To create bundle.js with index.html in dist/ folder:
npm run build
To release for publication in NPM:
npm run release
npm version patch
npm publish
To release minified production bundle:
npm run relmini
To release and install locally:
npm pack
> common-components-1.0.0.tgz
From project directory:
npm i /path/to/generated/common-components-1.0.0.tgz