Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@laerdal/analytics-react-components

Package Overview
Dependencies
Maintainers
0
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@laerdal/analytics-react-components

Laerdal react component library for Analytics.

  • 1.12.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
30
increased by42.86%
Maintainers
0
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 03 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc