Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Storybook X Styleguidist

Buzzvil
January 02, 2019
340

Storybook X Styleguidist

Buzzvil

January 02, 2019
Tweet

Transcript

  1. • Get data from Database • Generate HTML by data

    • Send it • Get HTML file • Reder Traditional Web App
  2. • Get data from Database • Send it • Get

    data • Generate HTML • Render Mordern Web App
  3. Container (state, logic) Presenter (stateless) Root Container Presenter Presenter Presenter

    Presenter Presenter Container Presenter props props props How Components Works
  4. Container (state, logic) Presenter (stateless) Root Container Presenter Presenter Presenter

    Presenter Presenter Container Presenter props props props How Components Works
  5. Inject state Fake state Presenter Presenter Presenter Presenter Presenter Presenter

    Fake state Fake state Fake state Fake state Fake state
  6. Storybook • Build & Test components • Mature ecosystem(addons) •

    Support isolated environment 
 without application’s requirements
  7. Styleguidist • Simplifies creating and maintaining 
 a UI documentation

    • Support isolated environment 
 without application’s requirements
  8. Why we should use it • Tool for UI components

    • De-facto standard • Communication for product team (Design, PM) • Prevent design/planning specification error • Easy (without configuration…)
  9. Which one is the best? • It depends on your

    preference • Almost same, but slightly different • Storybook as workshop, Styleguidist as storefront