Keet Health UI Components
Install
yarn add @keethealth/keet-ui
# or
npm install @keethealth/keet-ui
Usage
Import the library's stylesheet
@import "~@keethealth/keet-ui/dist/index.css";
Import the named components
import React, { Component } from 'react'
import { NamedComponent } from '@keethealth/keet-ui'
class Example extends Component {
render () {
return (
<NamedComponent />
)
}
}
Development
Local development with real time updates in applications where @keethealth/keet-ui
is used as a dependency is possible using symlinks.
- Navigate to the directory of this repo and start development mode
cd keet-ui
yarn start
- Run the
link
command on this package
yarn link
# or
npm link
- Navigate to the app that uses this package
cd ../patient-ui
- Create a symlink
yarn link @keethealth/keet-ui
# or
npm link @keethealth/keet-ui
This creates a symlink at patient-ui/node_modules/@keethealth/keet-ui
that links to your local copy of the library, allowing you to make live updates to the library that is immediately reflected on the consuming app. As long as both apps are running, there is no need to rebuild the app or restart any commands.