Components Library with Vite & Storybook 👨‍💻 Develop an App from Scratch (Part 8)

preview_player
Показать описание
In this video I'll demonstrate how to setup a web UI components library using Vite and its library mode, storybook for the documentation/reference and debugging. The components library will be used for the budget tracking application and in this first video I will do the library repository setup and implement the first two components - the button and icon.

What you'll learn:
- Create a React Components Library using Vite and its Library Mode
- Setup and Use Storybook with React

Repository:

Contents:
0:00 Introduction
5:18 Vite Project Setup
22:47 Storybook Setup
32:45 Button Component
51:38 Icon Component
59:05 Icon Button Component
1:12:12 Conclusion

Social Media:

#vite #react #components
Рекомендации по теме
Комментарии
Автор

I have tried in my local and published it but after installing in test project getting error like, Cannot read the properties of null ( reading useContext ).
But believe me there is no useContext used in my project.

After that i installed other react component libraries from npmjs but they are also giving same issue, even after installing all peer and dependencies. Any solution for this ?

BodyBuilder-ek
Автор

First of all thanks for the video!
I'm getting an error, how can I solve this please? Module './components/button/button' was resolved to /components-ui/src/components/button/button.tsx', but '--jsx' is not set.

carolbaroud