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

Component-Driven Development

Component-Driven Development

Component-Driven Development is a different approach to front-end development that empowers and encourages developers to build pure components in isolation before integrating them into larger containers, pages and layouts. This approach opens the doors to many interesting opportunities which we will learn about during the session.

Links:
* https://blog.hichroma.com/component-driven-development-ce1109d56c8e
* https://storybook.js.org/docs/guides/guide-angular/
* https://www.npmjs.com/package/@storybook/addon-storyshots

Byron Sommardahl

February 29, 2020
Tweet

Other Decks in Programming

Transcript

  1. Design Component Build component in wireframes or mockups first. Development

    Workflow Integrate with View Add component to larger smart component, view or container. Test Component Try component out, still isolated, in various states. Build Component Code component in isolation using Storybook.
  2. Add Storybook to your project Config Configures your project to

    support Storybook (including Webpack). Scripts Adds npm scripts that you can use to build and run Storybook. Samples Adds a few sample stories to get you started. Code >>
  3. Develop in Isolation Storybook enables devs to build pure components,

    free of influence from other components or views. Code >>
  4. Unit Tests Included! Every story can be a test with

    ZERO extra effort (with StoryShots).
  5. WE’RE HIRING! Come join a team who gets to do

    stuff like this AND MORE! acklenavenue.com/jobs Download Slides: