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

@laerdal/life-react-components

Package Overview
Dependencies
Maintainers
0
Versions
1229
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@laerdal/life-react-components

Laerdal LIFE component library for React.

  • 5.0.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
605
increased by114.54%
Maintainers
0
Weekly downloads
 
Created
Source

Laerdal LIFE component library for React

Build Status

How to use @laerdal/life-react-components

  • Add the package to your project:
    • cd /path/to/your-app
    • yarn add @laerdal/life-react-components or npm add @laerdal/life-react-components
  • Import components in your code:
    • import { Button } from '@laerdal/life-react-components'
  • or icons:
    • import { ChevronLeft, ChevronRight } from '@laerdal/life-react-components'

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

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

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:

  • npm add npm-link-shared -g
  • cd /path/to/your-app
  • sudo npm-link-shared /path/to/react-components/node_modules . react react-dom

Storybook

Storybook is added to the component library package to demo and document the components. Clone the repository, run yarn, then cd apps/storybook and run yarn storybook to start it locally.

FAQs

Package last updated on 24 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