This is a library containing all common components shared between the other projects and widgets.
It's purpose is to serve as library to be used within all projects and centralize all the common components in one place.
Add the library as a project dependency:
npm install perso-components
import Button from 'perso-components/Button';
function App() {
return (
<Button {...props} />
);
}
npm run build:watch
- Alter your
package.json
's version (Refer to semantic versioning) - Run
npm login
command to log into the registry. - Run
npm publish
command