3 ms·
- If your components depend inextricably on the context of the page, you're building them wrong. They should accept that context parametrically. - If your dum
by darawk 11y ago
- If your components depend inextricably on the context of the page, you're building them wrong. They should accept that context parametrically.
- If your dummmy data not including 300 item lists is a problem, then simply make it include them. Easy.
- Iterating on a component from within the app is what causes components to be built in the way described in point #1, tightly coupled to everything else going on. Iterating on them externally allows them to be built with proper interfaces, reasoned about in isolation, and easily tested and examined in different circumstances that may be cumbersome to manually create in the interface (e.g. as you mentioned, 300 item lists).