पाठ 23 / 25
Monitoring और Debugging
Storybook performance को monitor करें और component issues को debug करें।
Performance monitoring
Storybook की performance को monitor करने के लिए browser DevTools का use करें। Slow stories को identify करें और component rendering को optimize करें।
Component props को debug करना
Props और state को inspect करने के लिए Controls panel और React DevTools का use करें। यह identify करने में मदद करता है कि component expected तरीके से क्यों render नहीं हो रहा है।
Common issues
Common problems में missing dependencies, incorrect imports, और timezone mismatches शामिल हैं। Issues को diagnose करने के लिए Storybook logs का use करें।
Component testing strategies
Comprehensive coverage के लिए Storybook को unit tests, integration tests, और E2E tests के साथ combine करें। हर layer एक specific testing purpose को serve करता है।
Scale पर story organization
जैसे-जैसे आपका Storybook बढ़ता है, एक hierarchical folder structure में stories को organize करें जो आपके component organization को mirror करता है।