Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ironmanvim/storybook-mini
simpler version of storybook
https://github.com/ironmanvim/storybook-mini
Last synced: 17 days ago
JSON representation
simpler version of storybook
- Host: GitHub
- URL: https://github.com/ironmanvim/storybook-mini
- Owner: ironmanvim
- Created: 2021-02-08T12:39:28.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-03T18:28:39.000Z (over 3 years ago)
- Last Synced: 2024-04-22T15:45:51.370Z (10 months ago)
- Language: JavaScript
- Size: 2.34 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Storybook mini
A miniature version of storybook developed for react
## Usage
Before using storybook in your app you have to generate storycache which storybook will be using to display the stories.Add the following to the package.json
```json
{
"scripts": {
"build-storycache": "build-storycache",
"watch-storycache": "build-storycache -w"
}
}
```Run the following command
`npm run build-storycache` - for building storycache
`npm run watch-storycache` - for watching storycache
---
In App.js
```jsx
import { Storybook } from "storybook-mini";
import storyCache from "./storycache";export default function App() {
return (
Hello World
)
}
```