This is an internal library of react component.
npm install --save klox-components
-
Run in local on port 6006
npm run storybook
-
Build package
npm run build
-
Build storybook
npm run build-storybook
If you are not logged in npm, run npm login
and log in with the klox-team credentials.
In order to publish an updated version of klox-components package, run npm run build
.
After the build is complete, add a new version number in package.json then run npm publish
.
import React, { Component } from "react";
import MyComponent from "klox-components";
class Example extends Component {
render() {
return <MyComponent />;
}
}
MIT © Klox-team