🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

@canonical/maas-react-components

Package Overview
Dependencies
Maintainers
13
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@canonical/maas-react-components

React components for use in MAAS UI projects.

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
512
46.7%
Maintainers
13
Weekly downloads
 
Created
Source

MAAS React Components

This project is a library of React components for use in MAAS UI projects.

It contains components that are either specific to, or only used in MAAS. General purpose components should be added to @canonical/react-components instead.

Read more in Project philosophy and guidelines.

Getting started

Installation

npm install @canonical/maas-react-components

or using yarn:

yarn add @canonical/maas-react-components

Add styles import to your app:

@import "@canonical/maas-react-components/dist/style.css";

Development with maas-react-components

To see the changes you make to maas-react-components reflected in a consuming app immediately, follow these steps:

  • In the maas-react-components directory, run the following command to create a symlink:

    yarn link
    
  • In the consuming repository (e.g., maas-ui), run the following command to use the local version of maas-react-components:

    yarn link "@canonical/maas-react-components"
    
  • Go back to maas-react-components directory and run the following command to start the build process with the watch flag:

    npm run build:watch
    
  • As you make changes to maas-react-components they will be automatically built and reflected in the consuming app.

FAQs

Package last updated on 12 Oct 2023

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