We use React Storybook for documenting our components in library format. It's great for interacting with a component in its isolated state. Creating the component in Storybook first before adding it to our feature set helps me think of it as a decoupled and standalone entity. We have three sections in our Storybook:
- Features: for feature-specific components such as Feed
- Library: for shared components like buttons, popups, etc
- Style: for constants in typography, colors, etc
I find these Storybook add-ons useful:
- Knobs: Change props on the component to see how it responds
- Action Logger: See events being fired as you trigger them
- Notes: Document your component in more detail
#StackDecisionsLaunch
0 views0
