Build and Document React Components With Storybook

Поділитися
Вставка
  • Опубліковано 4 лис 2024

КОМЕНТАРІ • 79

  • @shfunky
    @shfunky 3 роки тому +17

    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.

  • @tukuyoma
    @tukuyoma 3 роки тому +3

    now this is how you learn storybook...thanks man your content is top notch

  • @mabeleain3320
    @mabeleain3320 Рік тому

    I can't thank you enough. I completely understand the storybook becz of your tutorial 😄

  • @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 роки тому +1

      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.

  • @ToufikNefouci
    @ToufikNefouci Рік тому

    the most underrated tutorial !!

  • @skverskk
    @skverskk 3 роки тому +7

    Good intro tutorial to Storybook.

  • @BigBetaTester
    @BigBetaTester 2 роки тому

    Thanks for teaching how to organise my storybook with subfolder.

  • @pengurrito7136
    @pengurrito7136 3 роки тому +1

    Good tutorial video in general, but the editing was fantastic! You kept everything moving at a steady pace with no unneeded detours.

  • @fltngmmth
    @fltngmmth 2 роки тому +1

    Best tut on the tube
    e: I havent even heard of this before. I wonder if it comes in tsc flavor.

  • @nicolotommasi4811
    @nicolotommasi4811 3 роки тому

    I think I just found my favorite coding tutorials

  • @romko-romario
    @romko-romario 2 роки тому +1

    A great tutorial, it's helped me very much, thank you!

  • @abdu1wahid105
    @abdu1wahid105 Рік тому

    Beautiful explaination! 🙏

  • @dericmiano3660
    @dericmiano3660 2 роки тому

    Thank you, be blessed for the good work.

  • @joshuahsieh436
    @joshuahsieh436 3 роки тому

    great tutorial, and love the way you positioned and cut your camera feed overlay!

  • @skoodath
    @skoodath Рік тому

    Great tutorial!

  • @SergiyAntonyuk_PhD
    @SergiyAntonyuk_PhD 2 роки тому

    Very useful video.
    Thanks

  • @em-it
    @em-it 3 роки тому +2

    Great, thanks for the practical training 👍

  • @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.

  • @mayasalasad8184
    @mayasalasad8184 2 роки тому

    thanks very helpful

  • @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

  • @xiazhuxia9582
    @xiazhuxia9582 2 роки тому +2

    cool,but how can storybook components used by reactjs for example?

  • @aryamantodkar3716
    @aryamantodkar3716 3 роки тому

    Beautiful explanation🚀 thankyou

  • @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

  • @andreaserrano3809
    @andreaserrano3809 2 роки тому +3

    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

  • @webboss
    @webboss 3 роки тому +1

    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

  • @KevinJTurner
    @KevinJTurner 3 роки тому

    Fantastic tutorial!

  • @sanaowl3159
    @sanaowl3159 2 роки тому

    Do you prefer yarn or npm when developing with react?

  • @rubenabrahamparedesjimenez5148
    @rubenabrahamparedesjimenez5148 2 роки тому

    Thanks :D new sub here

  • @abodmedia
    @abodmedia 3 роки тому +1

    hey after I do this can I just build with rollup and make it an npm package without adding anything further ?

  • @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

  • @romantyniv5381
    @romantyniv5381 3 роки тому

    perfect. thanks

  • @magankumar8713
    @magankumar8713 3 роки тому

    It helped. Thanks :-)

  • @GeriatricWidowMain
    @GeriatricWidowMain 3 роки тому +1

    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.

  • @felipesnet
    @felipesnet 3 роки тому +2

    What VScode theme is this?

  • @aqwandrew6330
    @aqwandrew6330 2 роки тому

    Any tutorial with mdx?

  • @okidokiyowyow356
    @okidokiyowyow356 3 роки тому

    What device are you using? Yours is fast, but Mine is slow, delete and installing storybook

  • @raminkhodaie4063
    @raminkhodaie4063 Рік тому

    what if a component gets its some props from an external api call? how storybook can handle this props?

  • @madvillany420
    @madvillany420 3 роки тому +1

    Where did you get that shirt? It’s so cool!!

    • @PortEXE
      @PortEXE  3 роки тому

      Birthday present!

  • @tanzeelrana7348
    @tanzeelrana7348 3 роки тому

    life saver !!

  • @VworksArt
    @VworksArt 2 роки тому

    Should you NOT use storybook for normal react apps? Like, is this best used for libraries?

  • @Luj8n
    @Luj8n 3 роки тому +3

    Hey! What is that theme you are using?

    • @charlibiris
      @charlibiris 3 роки тому

      Yes

    • @s3nsej118
      @s3nsej118 3 роки тому +1

      I think it's called LaserWave

    • @Luj8n
      @Luj8n 3 роки тому

      @@s3nsej118 Thanks!

  • @karthikeyansubbiah8792
    @karthikeyansubbiah8792 3 роки тому

    excellent tutorial....

  • @moalii7775
    @moalii7775 3 роки тому

    Nice bro.

  • @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 )

  • @peryMimon
    @peryMimon 3 роки тому

    good one

  • @skoizumi291101
    @skoizumi291101 3 роки тому

    Storybook can be work with native JavaScript?

  • @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.

  • @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 :(

  • @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'.

  • @fazalerabbi
    @fazalerabbi 3 роки тому +1

    Tutorials is more about, how to delete files :-)

  • @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 роки тому +2

      Enumerate or enumeration is pronounced "ee-noom-er-ate", so calling it either "ee-noom" or "ee-numb" is pretty common.

  • @haiderali6915
    @haiderali6915 3 роки тому

    can anyone explain what " Template.bind({}) " do here in stories?

    • @min11benja
      @min11benja 3 роки тому

      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.

    • @bisolaO
      @bisolaO 2 роки тому

      it helps to bind different variations of your component to your template function

  • @JeanAlesiagain3
    @JeanAlesiagain3 3 роки тому

    Why is he removing react-scripts?

  • @kirillzlobin7135
    @kirillzlobin7135 Рік тому

    23:36

  • @martinui4892
    @martinui4892 2 роки тому

    Storybook is free ?

  • @voidmind
    @voidmind 3 роки тому +2

    "--save"? You must be old ;p

    • @leftinashes
      @leftinashes 2 роки тому +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!

  • @7alken
    @7alken 3 роки тому

    understood, but its sooo fast, as everything, these days... sorry ))

  • @klaybond7739
    @klaybond7739 3 роки тому +1

    Seems like lots of extra work

  • @nikusha5911
    @nikusha5911 2 роки тому +1

    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.

  • @craig6494
    @craig6494 2 роки тому

    Great tutorial