@laerdal/analytics-react-components
TypeScript icon, indicating that this package has built-in type declarations

1.7.3 • Public • Published

Laerdal React component library for Analytics

How to use @laerdal/analytics-react-components

  • Add the package to your project:
    • cd /path/to/your-app
    • yarn add @laerdal/analytics-react-components or npm add @laerdal/analytics-react-components
  • Import components in your code:
    • import { <ComponentName> } from '@laerdal/analytics-react-components'

How to use a local version of @laerdal/analytics-react-components

  • Pull the latest version of @laerdal/analytics-react-components from Github.
  • If you have not already, add @laerdal/analytics-react-components to your application:
    • cd /path/to/your-app
    • yarn add @laerdal/analytics-react-components or npm add @laerdal/analytics-react-components
  • Create a link from your-app to component-library
    • cd /path/to/analytics-react-components
    • yarn link
    • cd /path/to/your-app
    • yarn link @laerdal/analytics-react-components

Invalid hook call warning

When you start your application, you might get an “Invalid Hook Call Warning”. This is because both component-library and your-app loads their own version of react and react dom. Make sure component-library uses the same version of react and react-dom as your-app uses:

  • cd /path/to/your-app/node_modules/react
  • yarn link
  • cd /path/to/your-app/node_modules/react-dom
  • yarn link
  • cd /path/to/analytics-react-components
  • yarn link react react-dom
  • yarn link
  • cd /path/to/your-app
  • yarn link @laerdal/analytics-react-components

Contribution

We utilize github actions to automatically publish this library - please include the following words in branch names to influence the semantic version.

  • major: "BREAKING CHANGE" or "MAJOR"

  • minor: "feature"

  • patch: This is the default increment if the above words aren't included.

Readme

Keywords

none

Package Sidebar

Install

npm i @laerdal/analytics-react-components

Weekly Downloads

34

Version

1.7.3

License

UNLICENSED

Unpacked Size

1.39 MB

Total Files

383

Last publish

Collaborators

  • laerdal_petehl
  • amarpreet.singh
  • gkhinchakadze
  • sagarsingour
  • laerdal-bb
  • vinayak.karmachandran
  • sarvan006
  • sandeepkalai