@showbie/backpack-react
v1.0.1
Published
**_Note:_ Further versions of this package will be published to the GitHub Package registry.**
Downloads
6
Readme
Note: Further versions of this package will be published to the GitHub Package registry.
🎒 React
React components for Showbie’s Backpack design system.
Developing
TSDX scaffolds your new library inside /src
, and also sets up a Parcel-based playground for it inside /example
.
The recommended workflow is to run TSDX in one terminal:
npm start # or yarn start
This builds to /dist
and runs the project in watch mode so any edits you save inside src
causes a rebuild to /dist
.
Then run either example playground or storybook:
Storybook
Run inside another terminal:
yarn storybook
This loads the stories from ./stories
.
NOTE: Stories should reference the components as if using the library, similar to the example playground. This means importing from the root project directory. This has been aliased in the tsconfig and the storybook webpack config as a helper.
Rollup
TSDX uses Rollup v1.x as a bundler and generates multiple rollup configs for various module formats and build settings. See Optimizations for details.
Named Exports
Per Palmer Group guidelines, always use named exports. Code split inside your React app instead of your React library.