Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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


)
}
```