Skip to content

Commit

Permalink
Remove note about separately exported subcomponents
Browse files Browse the repository at this point in the history
  • Loading branch information
jfuchs committed Dec 15, 2021
1 parent 0a4a2b7 commit 6696d1e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contributor-docs/adrs/adr-XXX-file-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ primer-react/
### Rules

- Every component should have its own PascalCased directory directly under `src/`
- Subcomponents meant to be used as children of their parent component should be properties of the exported component (e.g., `Breadcrumbs.Item`)
- Subcomponents meant to be used on their own should be exported as a named export (e.g., `ButtonDanger`)
- Subcomponents should be properties of the exported parent component (e.g., `Breadcrumbs.Item`)
- Replacements of existing components should use an incrementing number (e.g., `Breadcrumbs2` rather than `NewBreadcrumbs`)

## Implementation
Expand Down

0 comments on commit 6696d1e

Please sign in to comment.