mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
709 B
709 B
Design Component Architecture
Design a new component or feature following MetaBuilder patterns:
Questions to Answer
-
Is this better as declarative JSON or React TSX?
- Prefer declarative for data-driven UIs
- Use TSX only for complex interactions
-
Can existing packages handle this?
- Check
packages/*/seed/components.json
- Check
-
What's the data flow?
- Database →
Databaseclass → Component - Never bypass the Database wrapper
- Database →
Output a Design With
- Component tree structure
- Props interface
- Data dependencies
- Permission requirements
- Package location (new or existing)
Size Constraints
- Components: < 150 LOC
- Split large components using composition