Design Patterns · Junior · Question 73 of 75
What is a config-driven (data-driven) UI?
const fields = [
{ name: 'email', type: 'email', required: true },
{ name: 'age', type: 'number' },
];- ✓Correct answer: UI generated from a description in data (e.g. form fields), so adding a field doesn't require new markup
- 2UI configured only through
.envfiles - 3UI written in JSON instead of JavaScript
Explanation
It suits repetitive structures like forms or tables. For unique screens, plain components are easier to read.