Skip to content

Commit fe87df5

Browse files
0xPxtrickhanlonii
andauthored
clarify SRP definition (#8008)
* clarify SRP definition * Update src/content/learn/thinking-in-react.md --------- Co-authored-by: Ricky <[email protected]>
1 parent 896a689 commit fe87df5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/learn/thinking-in-react.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Start by drawing boxes around every component and subcomponent in the mockup and
3737

3838
Depending on your background, you can think about splitting up a design into components in different ways:
3939

40-
* **Programming**--use the same techniques for deciding if you should create a new function or object. One such technique is the [single responsibility principle](https://en.wikipedia.org/wiki/Single_responsibility_principle), that is, a component should ideally only do one thing. If it ends up growing, it should be decomposed into smaller subcomponents.
40+
* **Programming**--use the same techniques for deciding if you should create a new function or object. One such technique is the [separation of concerns](https://en.wikipedia.org/wiki/Separation_of_concerns), that is, a component should ideally only be concerned with one thing. If it ends up growing, it should be decomposed into smaller subcomponents.
4141
* **CSS**--consider what you would make class selectors for. (However, components are a bit less granular.)
4242
* **Design**--consider how you would organize the design's layers.
4343

0 commit comments

Comments
 (0)