kmx-aux-legos-mui
Getting Started
This package has not been published to a repository, yet.
To run locally, this library will need to be linked to the consuming app.
- Both projects must live within sibling directories
- /dev/kmx-aux-legos-mui
- /dev/auctions-checkin-site
- Create symlinks for both projects
# link the apps react version
cd /dev/kmx-aux-legos-mui
npm link ../auctions-checkin-site/node_modules/react
# create link for the package
npm link
# link to the library from the site
cd /dev/auctions-checkin-site
npm link kmx-aux-legos-mui
# go back to the library to build
cd /dev/kmx-aux-legos-mui
npm run build
# run within the target project
# https://stackoverflow.com/questions/65259040/react-antd-rollup-component-library-error-invalid-hook-call-hooks-can-onl
npm link node_modules/react
npm link kmx-aux-legos-mui
# run within this project
npm link react
npm run build
npm link
# to unlink, run within the target project
npm unlink kmx-aux-legos-mui
// add to a project
import { Button } from 'kmx-aux-legos-mui';
<Button text="My Button" />