Skip to content

Commit 4d16426

Browse files
authored
Update keeping-components-pure.md
1 parent 9c12c5a commit 4d16426

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/content/learn/keeping-components-pure.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ You could think of your components as recipes: if you follow them and don't intr
8585

8686
<Illustration src="/images/docs/illustrations/i_puritea-recipe.png" alt="A tea recipe for x people: take x cups of water, add x spoons of tea and 0.5x spoons of spices, and 0.5x cups of milk" />
8787

88-
#### What does "same JSX" mean?
88+
#### JSX Equality:
8989

9090
For two JSX values to be considered equal in React's purity model:
9191

@@ -102,10 +102,9 @@ For two JSX values to be considered equal in React's purity model:
102102
<Child config={{ color: 'red' }} />
103103
<Child config={{ color: 'red' }} />
104104

105-
// These are NOT equal (different structure or type):
105+
// These are NOT equal (different structure):
106+
<Child config={{ color: 'red' }} />
106107
<Child config={{ color: 'blue' }} />
107-
<Child />
108-
<DifferentComponent />
109108
```
110109
</Sandpack>
111110

0 commit comments

Comments
 (0)