@cube-dev/purple-banner
The Purple Banner is a React-component for showing Cube Dev, Inc. events on our websites.
Developing
Run Storybook for easy developing by npm run storybook.
Local testing
- Build the package by command
npm run build:preview.
Note: in some cases there are mistakes with React hooks because of few versions of React. In this case run npm link __path-to-website-directory__/node_modules/react in package directory before build command.
import PurpleBanner from "@cube-dev/purple-banner";
- When you'll finish just unlink package by command
npm unlink "@cube-dev/purple-banner".