2 ms·
In the case of a form, what’s wrong with composing a whole tree of custom “presentation” components in one render? Does this take up too much space? You don’t
by guscost 9y ago
In the case of a form, what’s wrong with composing a whole tree of custom “presentation” components in one render? Does this take up too much space?
You don’t always need to pass the prop through each individual component, instead you can render a section (or the whole form) together as one larger context-specific UI component, where everything in the render call has access to the same prop values.