Build and Document React Components With Storybook

Поделиться
HTML-код
  • Опубликовано: 23 ноя 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

  • @ToufikNefouci
    @ToufikNefouci Год назад

    the most underrated 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.

  • @mabeleain3320
    @mabeleain3320 Год назад

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

  • @skverskk
    @skverskk 3 года назад +7

    Good intro tutorial to Storybook.

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

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

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

  • @dericmiano3660
    @dericmiano3660 2 года назад

    Thank you, be blessed for the good work.

  • @romko-romario
    @romko-romario 2 года назад +1

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

  • @abdu1wahid105
    @abdu1wahid105 Год назад

    Beautiful explaination! 🙏

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

  • @joshuahsieh436
    @joshuahsieh436 3 года назад

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

  • @em-it
    @em-it 3 года назад +2

    Great, thanks for the practical training 👍

  • @skoodath
    @skoodath Год назад

    Great tutorial!

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

  • @SergiyAntonyuk_PhD
    @SergiyAntonyuk_PhD 2 года назад

    Very useful video.
    Thanks

  • @xiazhuxia9582
    @xiazhuxia9582 2 года назад +2

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

  • @craig6494
    @craig6494 2 года назад

    Great tutorial

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

  • @aryamantodkar3716
    @aryamantodkar3716 3 года назад

    Beautiful explanation🚀 thankyou

  • @madvillany420
    @madvillany420 3 года назад +1

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

    • @PortEXE
      @PortEXE  3 года назад

      Birthday present!

  • @mayasalasad8184
    @mayasalasad8184 2 года назад

    thanks very helpful

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

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

  • @KevinJTurner
    @KevinJTurner 3 года назад

    Fantastic tutorial!

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

  • @rubenabrahamparedesjimenez5148
    @rubenabrahamparedesjimenez5148 2 года назад

    Thanks :D new sub here

  • @sanaowl3159
    @sanaowl3159 2 года назад

    Do you prefer yarn or npm when developing with react?

  • @felipesnet
    @felipesnet 3 года назад +2

    What VScode theme is this?

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

  • @okidokiyowyow356
    @okidokiyowyow356 3 года назад

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

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

  • @aqwandrew6330
    @aqwandrew6330 2 года назад

    Any tutorial with mdx?

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

  • @magankumar8713
    @magankumar8713 3 года назад

    It helped. Thanks :-)

  • @raminkhodaie4063
    @raminkhodaie4063 Год назад

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

  • @moalii7775
    @moalii7775 3 года назад

    Nice bro.

  • @karthikeyansubbiah8792
    @karthikeyansubbiah8792 3 года назад

    excellent tutorial....

  • @tanzeelrana7348
    @tanzeelrana7348 3 года назад

    life saver !!

  • @VworksArt
    @VworksArt 2 года назад

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

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

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

  • @romantyniv5381
    @romantyniv5381 3 года назад

    perfect. thanks

  • @peryMimon
    @peryMimon 3 года назад

    good one

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

  • @skoizumi291101
    @skoizumi291101 3 года назад

    Storybook can be work with native JavaScript?

  • @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 3 года назад +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 года назад +1

    Seems like lots of extra work

  • @7alken
    @7alken 3 года назад

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

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

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