Build and Document React Components With Storybook

  Рет қаралды 89,356

PortEXE

PortEXE

Күн бұрын

Storybook is an awesome tool to help you build, demo, and document component libraries. Let's learn all about it in this tutorial!
#Storybook #Sotrybookjs #PortEXE
0:00 Intro
2:43 Project Setup
11:46 Storybook Overview
22:30 Building Tablr
41:15 MDX Syntax
46:38 Outro
🔗Code: github.com/portexe/storybook-...
🔗React Hooks: • Learn React Hooks In 6...
🎵 Music by Moon Wash.
songfuze.com/artist/moonwash
---
👀 Follow Me:
Twitter ➔ / portexe
Instagram ➔ / port.exe
GitHub ➔ github.com/portexe
Facebook ➔ / portexe
Website ➔ www.portexe.com/
GAMING ➔ / portexe

Пікірлер: 79
@pengurrito7136
@pengurrito7136 3 жыл бұрын
Good tutorial video in general, but the editing was fantastic! You kept everything moving at a steady pace with no unneeded detours.
@joshuahsieh436
@joshuahsieh436 3 жыл бұрын
great tutorial, and love the way you positioned and cut your camera feed overlay!
@tukuyoma
@tukuyoma 2 жыл бұрын
now this is how you learn storybook...thanks man your content is top notch
@amphibia95
@amphibia95 3 жыл бұрын
Cool tutorial man, thank you! Small tip at 5:00, you can just type " code . " in command line and it'll open vscode in current directory.
@em-it
@em-it 2 жыл бұрын
Great, thanks for the practical training 👍
@romko-romario
@romko-romario 2 жыл бұрын
A great tutorial, it's helped me very much, thank you!
@skverskk
@skverskk 3 жыл бұрын
Good intro tutorial to Storybook.
@aryamantodkar3716
@aryamantodkar3716 3 жыл бұрын
Beautiful explanation🚀 thankyou
@mabeleain3320
@mabeleain3320 10 ай бұрын
I can't thank you enough. I completely understand the storybook becz of your tutorial 😄
@KevinJTurner
@KevinJTurner 3 жыл бұрын
Fantastic tutorial!
@dericmiano3660
@dericmiano3660 Жыл бұрын
Thank you, be blessed for the good work.
@abdu1wahid105
@abdu1wahid105 Жыл бұрын
Beautiful explaination! 🙏
@BigBetaTester
@BigBetaTester 2 жыл бұрын
Thanks for teaching how to organise my storybook with subfolder.
@nicolotommasi4811
@nicolotommasi4811 3 жыл бұрын
I think I just found my favorite coding tutorials
@ToufikNefouci
@ToufikNefouci Жыл бұрын
the most underrated tutorial !!
@SergiyAntonyuk_PhD
@SergiyAntonyuk_PhD Жыл бұрын
Very useful video. Thanks
@magankumar8713
@magankumar8713 3 жыл бұрын
It helped. Thanks :-)
@mayasalasad8184
@mayasalasad8184 Жыл бұрын
thanks very helpful
@romantyniv5381
@romantyniv5381 3 жыл бұрын
perfect. thanks
@adomasgaudiesius
@adomasgaudiesius 2 жыл бұрын
Finally! I understand what storybook is for. Omg, I spent 12h today and only now I get it. Its for a component library without an app... Thank you my dude.
@codigomate
@codigomate 2 жыл бұрын
It can also be for an app with custom components or complex components. If you want to document and test your components in isolation is a good unit.
@craig6494
@craig6494 Жыл бұрын
Great tutorial
@fltngmmth
@fltngmmth 2 жыл бұрын
Best tut on the tube e: I havent even heard of this before. I wonder if it comes in tsc flavor.
@karthikeyansubbiah8792
@karthikeyansubbiah8792 3 жыл бұрын
excellent tutorial....
@webboss
@webboss 2 жыл бұрын
Would you recommend MDX over normal stories. What are possible pros and cons with using both? Great video by the way. Leading my team to create a component library and this was very helpful
@moalii7775
@moalii7775 3 жыл бұрын
Nice bro.
@tanzeelrana7348
@tanzeelrana7348 2 жыл бұрын
life saver !!
@peryMimon
@peryMimon 3 жыл бұрын
good one
@andrepadez
@andrepadez 2 жыл бұрын
That was great! Is there a followup on how to use this setup to publish a component/hooks library to npm? Thank you
@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
@rubenabrahamparedesjimenez5148
@rubenabrahamparedesjimenez5148 2 жыл бұрын
Thanks :D new sub here
@abodmedia
@abodmedia 2 жыл бұрын
hey after I do this can I just build with rollup and make it an npm package without adding anything further ?
@peryMimon
@peryMimon 3 жыл бұрын
I have a question How to use the block in the MDX file. when I try it the code color come gray ( and I hade the language :jsx attribute )
@garyrouse7766
@garyrouse7766 3 жыл бұрын
anyone know how to get ccs modules working? I'm getting 'CSS Loader has been initialized using an options object that does not match API schema'.
@sanaowl3159
@sanaowl3159 2 жыл бұрын
Do you prefer yarn or npm when developing with react?
@xiazhuxia9582
@xiazhuxia9582 2 жыл бұрын
cool,but how can storybook components used by reactjs for example?
@felipesnet
@felipesnet 3 жыл бұрын
What VScode theme is this?
@aqwandrew6330
@aqwandrew6330 2 жыл бұрын
Any tutorial with mdx?
@peilongdu5666
@peilongdu5666 3 жыл бұрын
How would this work regarding business logic of components? If you can't re-use them, is there any tangible benefit to creating re-useable components through storybook for complex components coupled with unique business logic?
@PortEXE
@PortEXE 3 жыл бұрын
If you use those components throughout the codebase and you want to document how they are used and how to use them, then yes.
@madvillany420
@madvillany420 3 жыл бұрын
Where did you get that shirt? It’s so cool!!
@PortEXE
@PortEXE 3 жыл бұрын
Birthday present!
@Jay-zr8kx
@Jay-zr8kx 3 жыл бұрын
hmm for me adding proptypes does not automatically generates the controls. I would have to manually go to stories and add args or argTypes to show the controls :(
@okidokiyowyow356
@okidokiyowyow356 3 жыл бұрын
What device are you using? Yours is fast, but Mine is slow, delete and installing storybook
@skoizumi291101
@skoizumi291101 2 жыл бұрын
Storybook can be work with native JavaScript?
@raminkhodaie4063
@raminkhodaie4063 Жыл бұрын
what if a component gets its some props from an external api call? how storybook can handle this props?
@jasonlough6640
@jasonlough6640 3 жыл бұрын
@34:45, how are args getting into the function? I see that it works, but whats the mechanism? Put another way: how is adding a property to Default (Default.args = {...} ) connected to Default(args)? Hows args getting in there?
@dgcp354
@dgcp354 3 жыл бұрын
I think it's spread operation,
@scriptkeeper8243
@scriptkeeper8243 3 жыл бұрын
Template.bind({}) makes it a copy/paste. Thus, the args ride along and you can manipulate them since they're spread.
@basselissa5176
@basselissa5176 2 жыл бұрын
I am getting error in project setup at running npm sb init error @storybook/addon-postcss@3.0.0-alpha.1: The engine "yarn" is incompatible with this module. Expected version "^1.17.0". Got "1.13.0" error Found incompatible module
@VworksArt
@VworksArt 2 жыл бұрын
Should you NOT use storybook for normal react apps? Like, is this best used for libraries?
@Luj8n
@Luj8n 3 жыл бұрын
Hey! What is that theme you are using?
@charlibiris
@charlibiris 3 жыл бұрын
Yes
@s3nsej118
@s3nsej118 3 жыл бұрын
I think it's called LaserWave
@Luj8n
@Luj8n 3 жыл бұрын
@@s3nsej118 Thanks!
@haiderali6915
@haiderali6915 3 жыл бұрын
can anyone explain what " Template.bind({}) " do here in stories?
@min11benja
@min11benja 2 жыл бұрын
I think it adds a sub list on the left sides components accordeon. I mean visually not sure of what it really does under the hood besides that.
@bisolaonaolapo6089
@bisolaonaolapo6089 2 жыл бұрын
it helps to bind different variations of your component to your template function
@andreaserrano3809
@andreaserrano3809 2 жыл бұрын
For those of you that run into this error when starting storybook --> Error: Cannot find module 'webpack/lib/node/NodeTemplatePlugin' Just run this --> npm install --save-dev webpack webpack-cli html-webpack-plugin webpack-dev-server webpack-dev-middleware
@GuilhermeFerreira-xb9tm
@GuilhermeFerreira-xb9tm 2 жыл бұрын
Thanks, that helps a lot
@stefankudla809
@stefankudla809 2 жыл бұрын
Thank you
@Dylancougar
@Dylancougar 2 жыл бұрын
Awesome
@oggy112
@oggy112 3 жыл бұрын
Awesome video, but one thing: this must be the first time I've heard someone pronounce `Enum` as `eenoom`
@thegrossmeyer
@thegrossmeyer 3 жыл бұрын
Enumerate or enumeration is pronounced "ee-noom-er-ate", so calling it either "ee-noom" or "ee-numb" is pretty common.
@fazalerabbi
@fazalerabbi 3 жыл бұрын
Tutorials is more about, how to delete files :-)
@JeanAlesiagain3
@JeanAlesiagain3 3 жыл бұрын
Why is he removing react-scripts?
@kirillzlobin7135
@kirillzlobin7135 Жыл бұрын
23:36
@martinui4892
@martinui4892 2 жыл бұрын
Storybook is free ?
@PortEXE
@PortEXE 2 жыл бұрын
Yes
@voidmind
@voidmind 3 жыл бұрын
"--save"? You must be old ;p
@leftinashes
@leftinashes 2 жыл бұрын
...and if that is the case then you should mind your elders and learn something! Oh that's right... Trolls don't believe in such constructs!
@klaybond7739
@klaybond7739 3 жыл бұрын
Seems like lots of extra work
@7alken
@7alken 2 жыл бұрын
understood, but its sooo fast, as everything, these days... sorry ))
@nikusha5911
@nikusha5911 2 жыл бұрын
Hello , storybook has a problem when installing it. My audit was clean before I installed storybook. It says: "19 high severity vulnerabilities". These vulnerabilities are about "chokidar" , "webpack" and so on. Could you tell me how to solve this problem ? I have googled and tried many things and as far as I have become I think it's Storybook's own problem. Anyone any help ? Thanks in advance.
@skoodath
@skoodath Жыл бұрын
Great tutorial!
@kirillzlobin7135
@kirillzlobin7135 Жыл бұрын
Great tutorial
@abdu1wahid105
@abdu1wahid105 Жыл бұрын
Thanks, shows truly high level knowledge, yet swoops down low enough so develepers of every ability can cross the finish line! There are not enough teachers like this. ⭐Liked and subscribed.
Build And Publish A React Component Library
24:02
PortEXE
Рет қаралды 100 М.
Я 💛 Фронтенд. Я ❤ Storybook - Семён Левенсон
44:40
Задержи дыхание дольше всех!
00:42
Аришнев
Рет қаралды 3,5 МЛН
A clash of kindness and indifference #shorts
00:17
Fabiosa Best Lifehacks
Рет қаралды 129 МЛН
Secret Experiment Toothpaste Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 19 МЛН
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 465 М.
Начало работы со StoryBook
23:42
Михаил Непомнящий
Рет қаралды 48 М.
Everything I Do When I Start A New React Project
16:28
PortEXE
Рет қаралды 4,8 М.
React UI Library Structure, Storybook and Tests
22:50
Jack Herrington
Рет қаралды 49 М.
From Design to Development Full Stack Next.js Crash Course
3:34:47
Colby Fayock
Рет қаралды 50 М.
React Testing Crash Course
58:36
Traversy Media
Рет қаралды 315 М.
Задержи дыхание дольше всех!
00:42
Аришнев
Рет қаралды 3,5 МЛН