React Storybook Crash Course

  Рет қаралды 369,423

Web Dev Simplified

Web Dev Simplified

Күн бұрын

Пікірлер
@RexGalilae
@RexGalilae 3 жыл бұрын
This guy's a perfect juxtaposition of "nerd" and "chad" and I don't even know how he manages it
@Pururin_Purin
@Pururin_Purin 3 жыл бұрын
its the hair
@vnoommuy
@vnoommuy 3 жыл бұрын
He's a CHARD!
@jr-yn4lk
@jr-yn4lk 3 жыл бұрын
step 1: be a handsome white male step 2: teach geeky stuff on youtube
@hardwired66
@hardwired66 3 жыл бұрын
hahahaha
@josersleal
@josersleal 3 жыл бұрын
he's competent. that's all that matters. He's young and that we all had. When age fades he can still be competent. Good job in your videos.
@KizashiX
@KizashiX 6 сағат бұрын
Timestamps (Powered by Merlin AI) 00:04 - Storybook is a tool for development testing and documentation of components and design. 01:42 - Build and test components in their own environment using Storybook. 03:10 - Creating components in Storybook 04:42 - Create a named story for the button component. 06:20 - Implementing Interactivity in Storybook 07:51 - The button component in Storybook can be customized and linked to actions 09:28 - Create multiple stories with different background colors and label sizes 11:03 - Create a nested folder structure for components 12:32 - Add a new argument 'number of children' to the stack component. 14:08 - Create a red box with text inside and display it in a horizontal stack 15:52 - Storybook allows us to define additional arguments only needed for testing 17:24 - Watch the video and subscribe for more content
@nicoalvarezeu
@nicoalvarezeu 3 жыл бұрын
No way! You read my mind or something. At work they told me on Thursday to look into Storybook, we will start implementing it soon. And just like that you release a video about it, unbelievable!
@emgodas
@emgodas 11 ай бұрын
God works in mysterious ways buddy
@nicoalvarezeu
@nicoalvarezeu 11 ай бұрын
@@emgodas Amen!
@KevinVandyTech
@KevinVandyTech 3 жыл бұрын
I've used storybook for 2 years at 2 different companies. It's awesome
@megapixel23
@megapixel23 3 жыл бұрын
That’s exactly what I needed to get started with the Storybook. Thanks a lot, you are doing a great job 👏
@Markard0
@Markard0 8 ай бұрын
Thank you for a short video with just enough information to get started, I don't need a 6 hour course with the history of react and storybook. This is perfect, keep up the good work
@federicomedinauy
@federicomedinauy 3 жыл бұрын
Excellent video! Love your content, very clear, precise and straight to the point. For readers, something not mentioned in the video is that the “args” object can also be specified in the export default object (above const Template) and it would apply to all exported stories (the ones below const Template), reducing the need to repeat the same, common args values in each story variation.
@VacaAlpha
@VacaAlpha 2 жыл бұрын
by that you mean you would only repeat the arguments that you wanna change? as in, for example: specify args object inside the export default with backgroundColor: "red" and then only specify it again where you actually do need a different color?
@federicomedinauy
@federicomedinauy 2 жыл бұрын
@@VacaAlpha Yeah. You only specify it again when you actually need a different default color for that one particular story.
@thedevguild7525
@thedevguild7525 2 жыл бұрын
I highly recommend this video tutorial. This is easily the best video or even tutorial to start learning React Storybook with! I have followed along and code the 2 components. Through it, I have learnt so much. When I read up other tutorials and the official documentation, the concepts just fit like a puzzle.
@none0n
@none0n 2 жыл бұрын
This is a perfect Storybook walkthrough... I am pretty confident to start this new role. Thank you
@callumgrayson1010
@callumgrayson1010 2 жыл бұрын
WDS has the highest value-per-minute of any web tech channel! This intro to not only informs me but actually motivates me to use Storybook! Outstanding work. Thanks.
@avinashchaudhary4231
@avinashchaudhary4231 2 жыл бұрын
thats the main thing i like about this channel. Thanks WDS
@TomDoesTech
@TomDoesTech 3 жыл бұрын
Storybook is great! I love using it with tsdx to create component modules.
@joannagoofit7253
@joannagoofit7253 8 ай бұрын
thanks for your movies. I used to watch them during my bootcamp, when i wanted to become Dev. And I still watch them as they are useful at work :)
@Francois3k
@Francois3k 3 жыл бұрын
Brother you are the truth. I was gonna buy coding phase course on storybooks an this video hit the spot for me. Man thank u for this info u save me money 💰 🤑 💸 lol
@isareinert8031
@isareinert8031 3 жыл бұрын
Thank you 🙏 I use storybook at work. It’s really helpful to understand the project. When you need to understand what this component does, just check your storybook. I liked your video so much. I hope you can make more videos about it. See you
@rizqyhbb
@rizqyhbb 2 жыл бұрын
After watching whole playlist from another youtuber, now I can say that I can keep up with Kyle's teaching speed and understand all of this storybook video haha, thanks Kyle
@bama2619
@bama2619 2 жыл бұрын
man, I am back to your video to try. Now I understand how to do this. Fast and to the point. Thank you.
@monique2819
@monique2819 2 жыл бұрын
I had to learn this for my job and you explained Storybook so well. Great tutorial!!!!!😊👍🏽
@dominiquebello3212
@dominiquebello3212 3 жыл бұрын
Perfect timing! Already liking storybook a lot thanks to your super condensed and helpful crash course 👋👌🤩
@hk-nu2zt
@hk-nu2zt Жыл бұрын
to the point tutorial now I am confident enough to write storybook in my cv
@shachaha
@shachaha 2 жыл бұрын
Can't believe that were 17 minutes! Great style of explanation! I appreciate that you speak relatively fast, even as a non-native it was just perfect to follow along. Hallo but where
@erikleo5727
@erikleo5727 Жыл бұрын
Looks good, I can't wait for the day these types of tutorials use typescript by default
@stelagadevska4342
@stelagadevska4342 3 жыл бұрын
Thank you for the simplified explanation! It was easy to understand and still interesting. Great tutorial! :)👏🧠
@maheshgunjal1092
@maheshgunjal1092 3 жыл бұрын
Finally found perfect video to understand the video. Good work bro
@bama2619
@bama2619 2 жыл бұрын
Thank you, great explanation. I am a beginner in SB and React. I just created my first app in react and installed my Sb. Your instructions were helpful. I could not catch up with the speed you created all the components in your story book, because I still have to master js. Great video though! Good for those who already know the js. I have to use typescript.
@ThiagoVieira91
@ThiagoVieira91 3 жыл бұрын
Aaaand I just got started on Storybook during an Uber ride. You're awesome, Kyle! Thank you! 💯
@Tinandel
@Tinandel Жыл бұрын
Our component design team mandated everybody start using this and.... the Storybook web site does an atrocious job explaining either how to really use Storybook, or the benefits thereof. To that end, thanks for the video.
@daniamsalem
@daniamsalem 2 жыл бұрын
For anyone else wondering what is going on at 13:28 when he's iterating over numberOfChildren. I went into the docs and also tested it on the console to figure. it out: 1. defaultValue is just a standard field built into Storybook and is used as a key for a value: storybook.js.org/docs/react/api/argtypes#gatsby-focus-wrapper 2. Starting from the outside, he's spreading values into an array, that's the brackets and the 3 periods aka [...] 3. The values he's spreading into the array above come from the Array(numberofChildren).keys(). I'll explain in two parts. Part 1: we've got an empty array created with a maximum limit of 4 values, that's Array(numberOfChildren) Part 2: that array is then counted out using the keys() function. As stated in MDN, this function returns "An array of strings that represent all the enumerable properties of the given object." Since the array returned from Part 1 was empty, this just counts out the number of indexes (0, 1, 2, 3). 4. As a result, this expression [...Array(numberOfChildren).keys()] returns an array that is [0, 1, 2, 3] 5. When he iterates over it that, the values being passed as "n" are 0, 1, 2, and 3. That explains why he adds a 1 to each value within the brackets {n + 1} Hope that helps!
@yerkoacuna5037
@yerkoacuna5037 2 жыл бұрын
Hey, sorry can you help me with a problem related to this? Im trying to do exactly the same as the example of the wrapper component with the argTypes numberOfChildren, but with TypeScript. The problem is that i cannot pass numberOfChildren to my template function throwing an error which says "numberOfChildren does not exist in (my component props)"... And indeed thats true, but thats the point of this example, to use an argtypes that originally does not exist in the component props. I don't know what i'm doing wrong and because i'm new to TS I also don't know how to specify the correct StoryBook Type for fix the error because is not inferring the argtype automatically and after digging in the docs / stack / google for hours im still stuck in this because all the examples that i find with TS only cover the case that the argType exist in the component props. Thanks.
@thedevguild7525
@thedevguild7525 2 жыл бұрын
Omg, I didn't catch it at first. You rocks! Thanks for the explanation.
@VacaAlpha
@VacaAlpha 2 жыл бұрын
@@yerkoacuna5037 have you solved it? Im curious about how to fix it, maybe creating an interface and passing it to the object?
@motr3bam867
@motr3bam867 3 жыл бұрын
Kyle I have learned so much from you. Thanks man... Thanks ❤
@jotasenator
@jotasenator 3 жыл бұрын
is just me or this chanel is the best ever!!!. thanks Kyle for this video
@abubakiruralov5543
@abubakiruralov5543 Жыл бұрын
you are amazing!!! THANK YOU FOR TEACHING AND PLEASE UPLOAD MORE VIDEOS
@GnomePuntTrainerYT
@GnomePuntTrainerYT 3 жыл бұрын
Nice timing! I read up quickly on storybooks a month ago and forgot about it. Will be fun to watch this and test some of it myself :D
@vnoommuy
@vnoommuy 3 жыл бұрын
.hair { position: fixed; }
@jeisongarzon6066
@jeisongarzon6066 2 жыл бұрын
Ty bro amazing explanation, i learned too much also with the proptypes video, ty !
@asbeldev3071
@asbeldev3071 3 жыл бұрын
Thanks you. Now i have much more the concept storybook
@jamesdillon738
@jamesdillon738 Жыл бұрын
After I've finished creating the horizontal Stack story at 15:30, the 'defaultValue: 4' argType hasn't pulled through to StoryBook. In Storybook it just has 1 red box and it asks me to set the number manually from the Controls section. Has there been an update to the defaultValue argType which explains why this has happened?
@dragonAwkward
@dragonAwkward 2 жыл бұрын
Nice crash course!
@madara_uchiha_WB
@madara_uchiha_WB 3 жыл бұрын
Hey bro you are excellent person, you are the one with whom i learned coding. #kyle #WebDevSimplified
@jotasenator
@jotasenator 3 жыл бұрын
the same here, a year ago
@madara_uchiha_WB
@madara_uchiha_WB 3 жыл бұрын
@@jotasenator yeah he is excellent
@ДмитрийКарпич
@ДмитрийКарпич 2 жыл бұрын
Thanks for the great video, really clear view to the Storybook.
@sitedel
@sitedel 3 жыл бұрын
So storybook is a way to describe customized web component's ? I didn't know this tool, great discovery !
@sitedel
@sitedel 3 жыл бұрын
... but in the example I don't like the idea of setting a color property because It may he difficile to adapt afterwards for dark mode or color blindness. I prefer to associate semantics to a component like "strong", "alert", "warning*, "validate", "reset", "update", "apply", "cancel*, and so on and so forth. Then telling that the "alert" behaviour leaf to white text on red background, to red button with some fancy shadow, can be done with CSS.
@RyanJohnson
@RyanJohnson 3 жыл бұрын
Finally a Storybook tutorial that works!
@AgneMedia
@AgneMedia 3 жыл бұрын
Thank you This is great explaining and sample to start with storybook
@BusinessWolf1
@BusinessWolf1 Жыл бұрын
bro you are a godsend
@ecam90
@ecam90 3 жыл бұрын
Excited for this one! Thanks for the video!
@Ntnismink
@Ntnismink 2 жыл бұрын
OMG 100% quality contents
@cyril7104
@cyril7104 3 жыл бұрын
That is so strange, exactly when i need, these weeknds!!
@justinmeskan4410
@justinmeskan4410 2 жыл бұрын
Nice intro... Keep them coming my friend
@travelingmindful
@travelingmindful 2 жыл бұрын
Appreciate this overview. I sorta wish the child component had been broken into a 2nd video and some use case examples were provided. Why would we ever want stacks of buttons in a UI scenario? Maybe taking the time to provide more context and showing use cases for advanced scenarios would be more helpful. Felt a little intense in the last minutes of the video cramming detail
@amauryperalta4364
@amauryperalta4364 2 жыл бұрын
Excellent video, thanks Kile
@RizaHariati
@RizaHariati 2 жыл бұрын
Very clear explanation. Thank you!
@vedantthombare1028
@vedantthombare1028 3 жыл бұрын
This guy is defeating Dev Ed too
@Ipauler
@Ipauler 2 жыл бұрын
great ! simple and short
@sergeykahnwald6640
@sergeykahnwald6640 2 жыл бұрын
Storybook is a cool package) But there are some cases when we don’t need all the power of storybook, but just a simple “test page” with all our components where we can play with its props. There is one package that works just fine for this, called storybox-react
@zayne-sarutobi
@zayne-sarutobi Жыл бұрын
🤲🤲
@yokiyu799
@yokiyu799 3 жыл бұрын
Thumb before watch, trust me!
@olddingodude
@olddingodude 2 жыл бұрын
I like this guy, he's quite realistic for an alien lizard.
@larzo1337
@larzo1337 3 жыл бұрын
Great video! High tempo yet easy to follow
@HumbertoRincon
@HumbertoRincon 3 жыл бұрын
It's my perception, or did you increased the speed slightly? 👍
@asifurrahman5436
@asifurrahman5436 Жыл бұрын
thanks for this awesome tutorial
@arshdeepkumar2586
@arshdeepkumar2586 3 жыл бұрын
god level video, i was looking fot this i like to meet you someday
@yyxx9309
@yyxx9309 2 жыл бұрын
Man this is awesome thank you so much!!!
@markshinkai598
@markshinkai598 3 жыл бұрын
this is so informative, but also this is the first time I'm using the playback of slowmo in youtube cause sometimes you talk so fast, otherwise super great video!
@artonthemind
@artonthemind 2 жыл бұрын
Hey there, Can you do a video on how Storybook uses Design Tokens and interacts with Figma for a bridge between the 2 teams??
@pepesabe
@pepesabe Жыл бұрын
CAN YOU MAKE ANOTHER ONE LIKE THIS BUT USING VITE, (not deprecated CRA)? im struggling changing buttons sizes on the browser, it doesnt function
@faizanmuhammad802
@faizanmuhammad802 Ай бұрын
Simply, create a react project using vite, and then initialize your project with storybook, this is what I did and default examples are working perfectly
@mfpears
@mfpears 2 жыл бұрын
Makes more sense to put the story file right next to the component
@ChiragPatel-y1d
@ChiragPatel-y1d 9 ай бұрын
this is great video. but I still do not understand what to do with this storybook?? in real project we have various UI and we use various component libraries. how storybook is helping in that? what is the use of creating such button.stories.js??
@licokr
@licokr 2 жыл бұрын
Thank you, it's perfect!
@supritbeck
@supritbeck 3 жыл бұрын
can you make a video on how to use webpack with react.
@ІванХлиста-б1ч
@ІванХлиста-б1ч 2 жыл бұрын
Great but it would be nice to add a little bit about snapshot (integration) testing in Storybook!
@croanna_
@croanna_ Жыл бұрын
I get SyntaxError: Unexpected token '
@doniaelfouly4142
@doniaelfouly4142 2 жыл бұрын
great tutorial thank you so much !
@ferhatdursun5689
@ferhatdursun5689 Жыл бұрын
Thank you!!
@jeanmarcr9196
@jeanmarcr9196 3 жыл бұрын
When you create stories at 10:06 how do you use those buttons in your component ?
@artem_zakharchuk
@artem_zakharchuk Жыл бұрын
It is very explicit, thank you! But how to use it in my app? Do I need just to import the story Component and work with it like with a simple Component?
@maresstefan3391
@maresstefan3391 2 жыл бұрын
Really awesome. How caould I publish the components that I use to npm?
@feossandon
@feossandon 3 жыл бұрын
What a nice video! Please try to go around GraphQL in the future C:
@rajabnatshah6256
@rajabnatshah6256 2 жыл бұрын
Thank you :)
@kasunedward962
@kasunedward962 2 жыл бұрын
Great tutorial
@hackynawhat
@hackynawhat 3 жыл бұрын
Please, tutorial for backend development
@thedevguild7525
@thedevguild7525 2 жыл бұрын
Hi, sorry to trouble you, could you explain a part of your code in 13:37 (extract below) I am not sure if Array is a component or referring to the type e.g. new Array()? I also need help explain the role of how the spread operator and .key() plays in dynamically adjusting the child element. [...Array(numberOfChildren).keys()].map......
@janakachamith1274
@janakachamith1274 3 жыл бұрын
can you do a video about how we can hide accesstokens in client side
@AbhishekMishra-uh6du
@AbhishekMishra-uh6du 3 жыл бұрын
Thank you for this video
@rezakajbaf6702
@rezakajbaf6702 2 жыл бұрын
Just came across your video. Much appreciate it.
@hassanm90
@hassanm90 3 жыл бұрын
How do we actually use these components in a project?
@amjadshadid90
@amjadshadid90 3 жыл бұрын
thank you the suitable video at the suitable time
@CadPixel-why-not2455
@CadPixel-why-not2455 2 жыл бұрын
nice vid thanks i learnt a lot
@saiprathap9550
@saiprathap9550 3 жыл бұрын
very help full
@JonasPDC
@JonasPDC 5 ай бұрын
Doesn't Typescript cover the use case for propTypes? I worked with ReactJS with TS for over 6 years i large teams and haven't used propTypes. I wonder if Storybook can deduct from TS types instead?
@DanEMO592
@DanEMO592 Жыл бұрын
Major version issues on my end when using React 18. I think the react-scripts version was causing problems but did anyone else get that?
@sudeepchoudhary5467
@sudeepchoudhary5467 3 жыл бұрын
Great video
@basharal-zghayar4564
@basharal-zghayar4564 2 жыл бұрын
Excellent tutorial, but please can you slow down you speaking ratio so we can follow up with you :D. Thank you very much
@wissendev5490
@wissendev5490 3 жыл бұрын
How about Nest Js crash course video
@ThiagoVieira91
@ThiagoVieira91 3 жыл бұрын
I second this!
@nastiak4044
@nastiak4044 3 жыл бұрын
Hey! Great video! Thanks. Can you make one for storybook with angular?
@DarrenbyDesign
@DarrenbyDesign 3 жыл бұрын
Any tips on getting this working in Angular?
@naveeng2003
@naveeng2003 2 жыл бұрын
How can we type the advanced example shown in TypeScript, when i tried to add numberOfChildren ts yells
@kacperkepinski4990
@kacperkepinski4990 10 ай бұрын
started from the middle
@ahmadjonabdusamadov4282
@ahmadjonabdusamadov4282 3 жыл бұрын
thank you man:)
@mike-aaa
@mike-aaa 5 ай бұрын
In TS i have 'numberOfChildren' is missing in props validation
@Yanis1
@Yanis1 3 жыл бұрын
Awesome 🖤🖤
@satyajitdandi7888
@satyajitdandi7888 Жыл бұрын
How to install storybook with yarn?? I am facing issues while installing it through yarn.
@XiagraBalls
@XiagraBalls 3 жыл бұрын
Hmm. I'm trying to do something a bit more complex, I think. I'm trying to create a story for a component which has an parent wrapper. The component itself takes an 'intl' prop which is a complex object (containing functions for formatting currencies, e.g.) and this is dependent on having access to the provider component. Trying to ignore this requirement just leads to an error in Storybook saying the component I'm trying to render needs this provider wrapper. Erm....
@shekhar_sahu
@shekhar_sahu 3 жыл бұрын
What do we do with the stories we just created?
Storybook 7 Crash Course - React Typescript
28:23
Marius Espejo
Рет қаралды 49 М.
Build And Publish A React Component Library
24:02
PortEXE
Рет қаралды 108 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
How To Debug React Apps Like A Senior Developer
21:07
Web Dev Simplified
Рет қаралды 198 М.
Storybook - Быстрый курс по работе и тестированию с React
37:39
Speed Up Your React Apps With Code Splitting
16:50
Web Dev Simplified
Рет қаралды 401 М.
10 React Antipatterns to Avoid - Code This, Not That!
8:55
Fireship
Рет қаралды 788 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 280 М.
Начало работы со StoryBook
23:42
Михаил Непомнящий
Рет қаралды 52 М.
This UI component library is mind-blowing
8:23
Beyond Fireship
Рет қаралды 748 М.
Top 6 React Hook Mistakes Beginners Make
21:18
Web Dev Simplified
Рет қаралды 588 М.
Learn React Query In 50 Minutes
51:09
Web Dev Simplified
Рет қаралды 323 М.
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 957 М.