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.
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 ofmaas-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.