The Quickest Way To Kickoff A React Typescript Storybook Project
Yoav Ganbar
Posted on April 2, 2021
Where do you start when you want to kick off a new TypeScript + React package or library? How do you add StoryBook into the mix?
This sounds like a daunting task if you haven't done it before, and even if you did, it's still kind of a pain in the butt.
Configuring a package is a myriad of decisions and tinkering with many files and configs of different tools.
What if I told you it doesn't have to be a pain at all? What if it's even a delightful experience? What if all you need to do is run one command? Wouldn't that blow your mind?!
So here it is, the command you've been waiting for:
npx tsdx create my-new-project
Follow the prompts and choose react-with-storybook
.
That's it! Thanks for reading 😃
If you'd like a deeper dive and learn how to build a component library that uses Tailwind and Styled Components as well - check out my previous post: "How to Build A React TS Tailwind Design System"
Posted on April 2, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
July 27, 2024