Skip to content

Commit dbeec09

Browse files
committed
Add note to 'Components'
1 parent 5d21f4a commit dbeec09

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/components.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ Characteristics
4444

4545
When determing whether a module is a Component or Structure, we find it helpful to ask ourselves the following questions:
4646

47+
<!-- Every "module" you write should have a single responsibility, so this shouldn't be a determining factor to decide between a Component or Structure. The two other questions should suffice, though. -->
48+
4749
- Does this module have a single responsibility?
4850
- Does this module depend on or extend other Components?
4951
- Is this module abstract enough to use in other projects without making significant changes?

0 commit comments

Comments
 (0)