Easily create demos of React components
Maintaining example code and demo separately makes it painful, it's easy to get them out of sync π
Code can't lie, documentation can π₯
DemoZap CLI keeps your code up to date with demo πͺ
- Name component files as
[component_name].demozap.jsx
- Run
npx demozap generate
Use created demos π
React
npm install -D react-demo-tab
- Generated demo files are prefixed with
_
:
MyComponent.demozap.jsx
β_MyComponent.jsx
- or set custom prefix:
npx demozap generate --prefix=CustomPrefix
To manually create demos instead via CLI use DemoTab component.
All contributions are welcome!