# deepsight-react-components

This project gathers all the deepsight components that be used within the react web applications

Each component documentation can be found in it's subfolder in src.

## Storybook

This lib uses [Storybook](https://storybook.js.org/)

After install, run `npm storybook` and open `http://localhost:6006` in a browser

## Test locally the library integration

If you wish to test the components integration within your own project, you can use `npm link` to allow the `deepsight-react-components` package local version to be used within another project. To do so, you simply have to do the following

In the `deepsight-react-components` project:

- `npm run build` to have a built version of the library (or `npm run build:watch` for development purpose)
- `npm link`


In the WEB APP project you wish to use the library:

- `npm link deepsight-react-components`

OR :

In the `deepsight-react-components` project:

- `npm run build` to have a built version of the library (or `npm run build:watch` for development purpose)

In the WEB APP project you wish to use the library:

- modify deepsight-react-components version to : `file:../deepsight-react-components` in `package.json`
- `npm i deepsight-react-components`
