DEV Community

Discussion on: Documenting React Components With Storybook

Collapse
 
murkrage profile image
Mike Ekkel

Bit late to the party here, but I don't think it's about being able to export it as a React app but more to document your components. Knowing what components you have and how they behave is invaluable as it will reduce the time you spend re-inventing the wheel you invented a while ago with some other component.

Collapse
 
eerk profile image
eerk

So it's just for testing out components, and when they work, then you... copy > paste the code?

Thread Thread
 
murkrage profile image
Mike Ekkel

I have yet to test it out this far. I'm probably going to dabble around with Storybook this weekend as I want to suggest it to my team. I recently joined the team but there is no design system in place, nor are any of the components documented which makes the codebase a bit of a mess. I'm trying to turn the tide and looking for ways to help us keep track of our components, how we use them and what we can customise. Storybook seems like a good choice, but I'll have to give it a whirl before I know for sure. I'll write about my experience with it and will include a way to 'export' it to your own codebase if I find one :)

Thread Thread
 
eerk profile image
eerk

Haha, great! Looking forward to the post. So many things to learn and try out.