Тёмный

Storybook 7 Crash Course - React Typescript 

Marius Espejo
Подписаться 28 тыс.
Просмотров 40 тыс.
50% 1

In this video I'll walk you through how to setup storybook for the first time as well as the fundamentals you need to know to create stories and develop ui or react JS / TS components in isolation.

Опубликовано:

 

1 май 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 103   
@mariusespejo
@mariusespejo Год назад
Here's a follow up video covering interaction testing: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Lg-hT0O2F7E.html Let me know what you think! 😄
@md.lutfullahillabib
@md.lutfullahillabib 11 месяцев назад
Can you make full tutorial from scratch including testing , build a full storybook like for a company with best coding? using vitejs, reactjs, javascript, tailwind-css. All latest versions. please? 🙏 & explaining everything.
@mariusespejo
@mariusespejo 11 месяцев назад
@md.lutfullahillabib the fundamentals are all here, and the testing follow up is linked above, I don’t really see what else there would be to cover. Creating a “full” storybook would just be reiterating the same patterns
@rajatguptanarwana
@rajatguptanarwana 3 месяца назад
Please share github repo link.
@mariusespejo
@mariusespejo 3 месяца назад
@rajatguptanarwana it’s not really worth cloning, there’s very little code written. I suggest running the storybook init in your own project, it will come with much better examples to play around with.
@jacquitratongamanahaja979
@jacquitratongamanahaja979 Год назад
You are amazing Marius Espejo. The content and your explanation are very clear. It is very easy to follow along and understand everything. I can't wait to see the next video.
@mariusespejo
@mariusespejo Год назад
Thank you Jacquit!
@filiptaticek1381
@filiptaticek1381 Год назад
Great video! I appreciate that it is very up to date, and you explained all the things clearly.
@yajirushik2871
@yajirushik2871 2 месяца назад
Personally this one video clearly introduces Storybook for me, even if it's outdated version, works perfectly. Thank You!
@dobingify3130
@dobingify3130 Год назад
You're teaching is very clear and straightforward. I highly recommend this!
@mariusespejo
@mariusespejo Год назад
Thank you 🙏
@ChrisHowardG
@ChrisHowardG 2 месяца назад
Really awesome overview! Much better than some of the "Storybook in 10 min" videos I've seen. Thanks!
@mariusespejo
@mariusespejo 2 месяца назад
Thank you!
@joicyjoy9658
@joicyjoy9658 7 месяцев назад
Awesome ....I have got clear idea about Storybook. I am usually a fan of WebDevSimplified you tube channel. But your channel is something I have recently explored. I could say you have nailed it by vivid explanation.
@mariusespejo
@mariusespejo 7 месяцев назад
Thank you! Glad you are enjoying the channel
@user-zw1pz2pj3p
@user-zw1pz2pj3p Год назад
Really do like the way you explain! Liked other videos too! Keep up the good work!
@user-zw1pz2pj3p
@user-zw1pz2pj3p Год назад
Do you recommend this video too? ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-qSkHRVLcj6U.html
@rakeshkharvi4145
@rakeshkharvi4145 3 месяца назад
Wow!, great video. very simple and elagant. beatifully expalined
@ifedayoagboola2763
@ifedayoagboola2763 9 месяцев назад
A very big thanks for this. You're the best!
@waseemmn2007
@waseemmn2007 Месяц назад
Good video, simple and to the point for a quick overview of Storybook. keep it up 👏
@mariusespejo
@mariusespejo Месяц назад
Thanks man!
@alexandrdermenji2428
@alexandrdermenji2428 Год назад
Nice to see video about testing with storybook
@f0j1
@f0j1 Год назад
OMG Thank you so much! There was not a good documentation about Storybook 7. Cheers from 🇨🇱 Chile! :)
@fadliblight2822
@fadliblight2822 Год назад
Thankyou I quickly learn a lot from this video bro
@joeshepherd6590
@joeshepherd6590 10 месяцев назад
Great intro. Thank you!
@kranthikumar5215
@kranthikumar5215 4 месяца назад
The way you are explaining is awesome.....rocking star.God bless you ma n❤
@mariusespejo
@mariusespejo 4 месяца назад
Hey! Thank you so much 🙏
@david_kent7302
@david_kent7302 Год назад
Great video! Curious to know your theme you're using.
@rajkiranchaudhary8769
@rajkiranchaudhary8769 Месяц назад
Nice crash course. Thank you for making this video
@mariusespejo
@mariusespejo Месяц назад
Totally, thanks for the comment!
@doomnationalist
@doomnationalist 6 месяцев назад
This was really helpful, thank you!
@dweebycat9929
@dweebycat9929 11 месяцев назад
Amazing tutorial, thank you!
@mariusespejo
@mariusespejo 11 месяцев назад
You’re welcome!
@DanEMO592
@DanEMO592 11 месяцев назад
Amazing! Thank you so much!!! :D
@ahsanabrar880
@ahsanabrar880 5 месяцев назад
Good video quality, thanks
@AshlyLaMarr
@AshlyLaMarr Месяц назад
Great job!
@mariusespejo
@mariusespejo Месяц назад
Thank you! 🙌
@dawid_dahl
@dawid_dahl Год назад
Thank you! 🙏🏻
@jacquitratongamanahaja979
@jacquitratongamanahaja979 Год назад
It would be really nice if you can cover the visual test and interaction test in the next video.
@mariusespejo
@mariusespejo Год назад
posted! ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Lg-hT0O2F7E.html
@veritatas678
@veritatas678 Год назад
Cool video. I am interested in the visual testing.
@mariusespejo
@mariusespejo Год назад
posted! ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Lg-hT0O2F7E.html
@victorolimpio91
@victorolimpio91 Год назад
Great video! you hard define variant props as 'green' on the Light component why the stories args was able to change the circle's color?
@mariusespejo
@mariusespejo Год назад
That’s kind of the point of args, you can set an initial prop but the controls allows you dynamically update. The core idea is it’s like documentation that isn’t static, you can play around with it
@SkippyMcfee
@SkippyMcfee 10 месяцев назад
Thank you!!!
@amirhossein570
@amirhossein570 11 месяцев назад
Good video
@artem_zakharchuk
@artem_zakharchuk 5 месяцев назад
It is very explicit, thank you! I have signed up) I use stories only to develop small Components, right? And for the App, I should use a simple Component with props (like Light.ts in your video)? I know that it is quite a stupid question, but still)
@mariusespejo
@mariusespejo 5 месяцев назад
There is no restriction on how “small” but the point is that you start with small and those components you should be able to compose into larger components which those could have stories as well
@tzuilee588
@tzuilee588 Год назад
Yo, nice content man!
@mariusespejo
@mariusespejo Год назад
Thanks!
@someoneelse1952
@someoneelse1952 Год назад
Dude, did you go to css school or something? You are very fast and fluent. Thanks for the video. Very useful. I may have to use this tool for a while to determine what value this will add to my work flow & whether the benefits outweigh the cons.
@mariusespejo
@mariusespejo Год назад
Nah I play around with CSS until it looks right just like most people haha. As for the “cons” of storybook it’s really mostly the added code to write stories, but it’s up to you how much you utilize it. In my mind a lot of the benefits definitely outweighs a little extra code but definitely it also depends on your workflow
@skoizumi291101
@skoizumi291101 5 месяцев назад
Thanks for the great video. I have one question. What we be the development workflow once you are done the development? Copy and paste? Or is there any easier and better way to bring this to my application?
@mariusespejo
@mariusespejo 5 месяцев назад
Sorry not sure I understand your question. Creating stories itself is one of the development workflows. Build components and use them as usual.
@sergeyfilippov2522
@sergeyfilippov2522 Год назад
thx, diamond lesson )
@user-ih6cg9fn4s
@user-ih6cg9fn4s 4 месяца назад
what is the extension in 9:52?
@IneyeGabriel
@IneyeGabriel Год назад
Do you have a discord I can follow? Your teaching is clear. The video quality is superb, and the sound is great.
@mariusespejo
@mariusespejo Год назад
Thank you! I don’t at this time but will think about it
@jacqueskorb879
@jacqueskorb879 3 месяца назад
Hi. Thank you. How do I change my existing stories seeing that ComponentStory, ComponentMeta does not exist anymore in the latest version of Storybook? Any ideas? Tx in advance.
@mariusespejo
@mariusespejo 3 месяца назад
In newer versions of storybook if you use their upgrade command it typically will auto migrate some changes for you.
@danielguldbergaaes6432
@danielguldbergaaes6432 Год назад
Thanks for another great video! Can I ask which browser you are using, it looks really nice!
@mariusespejo
@mariusespejo Год назад
The Ark browser! Check it out it’s pretty cool
@danielguldbergaaes6432
@danielguldbergaaes6432 Год назад
@@mariusespejo Thanks! It seems like I'm not cool enough to get access to it yet though ;)
@mariusespejo
@mariusespejo Год назад
I was on the waitlist for maybe a week or two, it shouldn’t take long!
@danielguldbergaaes6432
@danielguldbergaaes6432 Год назад
@@mariusespejo Got it today :D what did you do to get that topbar isntead of the sidebar? if you don't mind me asking.
@mariusespejo
@mariusespejo Год назад
I think it automatically does that for localhost but for any other site you can click on the little info icon next to the url and set it to developer mode. It’s on a per site basis unfortunately
@paieu
@paieu 5 месяцев назад
I learnt something today:: anyway thanks hehe
@mariusespejo
@mariusespejo 5 месяцев назад
😄
@rufok5336
@rufok5336 10 месяцев назад
Can you make another video for storybook? This was really useful thank you so much!!
@mariusespejo
@mariusespejo 10 месяцев назад
I can think about it! Was there something specific that you thought was missing in the video?
@rufok5336
@rufok5336 10 месяцев назад
@@mariusespejo I received an internship offer for a really nice company which they asked me to look at Storybook and this video was amazing from someone who never coded in my life hahaha Probably I would like to know more how it is used in a professional environment with examples etc
@mariusespejo
@mariusespejo 10 месяцев назад
Ah I see, to a degree the fundamentals are all here. It honestly is mostly about isolated development, documentation, and testing. I do have a video on storybook interaction testing. You also can find a bunch of public company storybooks you can use to see how others are using it. Most people would use it to build design systems, component libraries, etc. Will think about other video topics for this space. Anyways good luck on your internship!
@poojaagarwal2041
@poojaagarwal2041 11 месяцев назад
hey am create boilerplate react with antd 5, styled-component, typescript, storybook 7 but I am confused to how can i add antd 5 css customisation file in storybook preview.js file
@poojaagarwal2041
@poojaagarwal2041 11 месяцев назад
import React from "react"; import { StoryObj, Meta } from "@storybook/react"; import Button from "./Button"; export default { title: "Components/Button", component: Button, } as Meta; // type individual stories type Story = StoryObj; export const Base: Story = { args: {}, }; export const Another: Story = { args: { label = "Button", }, render: (args) => , }; i am create same as your tutorial but strill getting error 'Button' refers to a value, but is being used as a type here. Did you mean 'typeof Button'?
@user-rm1dj7sk4c
@user-rm1dj7sk4c 11 месяцев назад
👍
@user-fh2po8id9e
@user-fh2po8id9e 6 месяцев назад
how can i add boostrap to storybook, i try to run it but my styles are not showing
@mariusespejo
@mariusespejo 6 месяцев назад
Need to import the css in the preview.js storybook.js.org/recipes/bootstrap
@loribryant4999
@loribryant4999 22 дня назад
I dont like the sound of your voice man, but your are really freaking good
@user-zh6hj7ng6s
@user-zh6hj7ng6s 5 месяцев назад
Hello, I'm new to Storybook, and I found this video very instructive. Could you share an example of how to use React Context API with Storybook? Thanks in advance.
@mariusespejo
@mariusespejo 5 месяцев назад
Hey there, there’s nothing special about using context in storybook. Just as usual you just need to have a provider to your stories, e.g. to provide mock data. Basically just follow typical usage as shown in react docs
@user-zh6hj7ng6s
@user-zh6hj7ng6s 5 месяцев назад
@@mariusespejoReally thanks
@mariusespejo
@mariusespejo 5 месяцев назад
Here’s an example of where you can add decorators wrapping your stories, you can place providers in there storybook.js.org/docs/writing-stories/decorators#story-decorators
@user-zh6hj7ng6s
@user-zh6hj7ng6s 5 месяцев назад
@@mariusespejoThank you very much.
@vidyasagarkushwaha8080
@vidyasagarkushwaha8080 Месяц назад
Please make view with redux and router setup
@nguyenkhoi3775
@nguyenkhoi3775 10 месяцев назад
Do you know the way to publish this package on npm
@mariusespejo
@mariusespejo 9 месяцев назад
You can use tools like rollup to bundle your code, the rest of how to publish I suggest reading npm docs
@TheSodaMaster87
@TheSodaMaster87 10 месяцев назад
IDK whats going on, I follow every one of these tutorials step by step exactly and it always ends up breaking or crashing in someway. I get this error : Can't resolve "./Light" not sure why this is doing this...
@mariusespejo
@mariusespejo 10 месяцев назад
Are you sure you’re importing with the right path?
@TheSodaMaster87
@TheSodaMaster87 10 месяцев назад
@@mariusespejo Just figured it out, I just had to restart StoryBook. For some reason, it was giving me errors over an old component I had already deleted..but it didnt register until restarting StoryBook. Thanks man
@user-db7fu5yo6i
@user-db7fu5yo6i Год назад
Could you share link for github repo please?
@mariusespejo
@mariusespejo Год назад
It’s not in a repo at the moment, I recommend just coding along with the video, there’s not much code written
@sauravbhagat4737
@sauravbhagat4737 Год назад
How to build this project for deploying this to npm?
@mariusespejo
@mariusespejo Год назад
You need a tool designed for doing those kinds of builds, take a look at tsdx as an example or you can use rollup if you want to configure it yourself
@sauravbhagat4737
@sauravbhagat4737 Год назад
@@mariusespejo I think tsdx is too outdated now. Have you used it recently?
@mariusespejo
@mariusespejo Год назад
i don’t know that i would call it outdated, it still solves the same problem although perhaps just not being actively maintained. There is a fork of it called dts-cli that you can perhaps consider. Again also if you’re concerned then you can configure tools like rollup yourself, tsdx is just the zero config get started quickly path to that
@sauravbhagat4737
@sauravbhagat4737 Год назад
@@mariusespejo just FYR Tried tsdx, lot of errors due to internal roll-up version conflicts. As you've suggested, using vite + roll-up config. It's working fine now. Thanks
@jkmoijul8559
@jkmoijul8559 Год назад
can you share link to the source code?
@mariusespejo
@mariusespejo Год назад
It’s not on a repo. Honestly if you watch the video it’s literally just running two commands (vite & storybook) and writing the two files… it would take you 5min to write
@kacperkepinski4990
@kacperkepinski4990 2 месяца назад
you missed steps
@mariusespejo
@mariusespejo 2 месяца назад
What do you mean?
@henriquekramer_
@henriquekramer_ 4 месяца назад
thanks
Далее
TypeScript in React - COMPLETE Tutorial (Crash Course)
53:21
Learn storybook in 8 minutes
7:54
Просмотров 5 тыс.
Начало работы со StoryBook
23:42
Просмотров 47 тыс.
Every React Concept Explained in 12 Minutes
11:53
Просмотров 378 тыс.
React Storybook Crash Course
17:28
Просмотров 329 тыс.
Build and Document React Components With Storybook
47:11