Why Storybook?
문제점
해결책
UI를 독립적으로 빌드하기
스토리북에서 모든 UI 조각은 컴포넌트이다. 컴포넌트의 강점은 전체 앱을 실행하지 않고도 렌더링 결과를 확인할 수 있다는 점이다.
Storybook is packaged as a small, development-only, workshop that lives alongside your app. It provides an isolated iframe to render components without interference from app business logic and context. That helps you focus development on each variation of a component, even the hard-to-reach edge cases. (앱 비즈니스 로직과 컨텍스트의 방해 없이 컴포넌트를 독립된 iframe에서 렌더링할 수 있게 한다.. 이를 통해 컴포넌트의 각 변형, 특히 도달하기 어려운 엣지 케이스의 개발에 집중할 수 있다..)
Component Driven User Interfaces
The development and design practice of building user interfaces with modular components. UIs are built from the “bottom up” starting with basic components then progressively combined to assemble screens.
Components enable interchangeablity by isolating state from application business logic. That way you can decompose complex screens into simple components. Each component has a well-defined API and fiexed series of states that are mocked. This allows components to be taken apart and recomposed to build different UIs.
What's a story?
A story captures the rendered state of a UI component. Developers write multiple stories per component that describe all the “interesting” states a component can support.
'Web' 카테고리의 다른 글
env안에 있는 변수를 package.json에서 사용할때 (0) | 2024.10.22 |
---|---|
turborepo + shadcn 에서 tailwind.config.ts의 주의사항... (0) | 2024.07.31 |
Turborepo의 이용 (0) | 2024.06.22 |
모노레포란? (0) | 2024.06.22 |
댓글