Skip to content

Commit 0b88a87

Browse files
Fix code typo
1 parent ec89933 commit 0b88a87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/codebase-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ Some props accept an existing Design System React component such as the `dropdow
315315

316316
In a way, this is "grandparent control" in that it surfaces the internal API of sub-components to the consuming developer in a way that the parent of the parent can control it. The parent component (such as `DataTableRowActions`) shallow merges the props from itself with the component props provided from the developer. The developers or the "grandparent" takes precedence and merges in last.
317317

318-
This pattern creates a separation of concern and a more declarative approach that relies on child components with their own props instead of additional props on the parent component such as `<Button iconClassName />`. Passing in <Dropdown options={} /> to a dropdown prop limits the aliasing of props for child components that already exist and reduces duplication of `PropType` documentation and increases library maintainability.
318+
This pattern creates a separation of concern and a more declarative approach that relies on child components with their own props instead of additional props on the parent component such as `<Button iconClassName />`. Passing in `<Dropdown options={} />` to a `dropdown` prop limits the aliasing of props for child components that already exist and reduces duplication of `PropType` documentation and increases library maintainability.
319319

320320
## Prefer Ternary to Sub-render
321321

0 commit comments

Comments
 (0)