Skip to content

Commit 9498c0d

Browse files
authored
Update index.mdx (#569)
1 parent 49f0854 commit 9498c0d

File tree

1 file changed

+2
-2
lines changed
  • content/blog/usememo-and-usecallback

1 file changed

+2
-2
lines changed

content/blog/usememo-and-usecallback/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ function Blub() {
291291
}
292292
```
293293
294-
The reason this is problematic is because `useEffect` is going to do a
294+
The reason this is problematic is `useEffect` is going to do a
295295
referential equality check on `options` between every render, and thanks to the
296296
way JavaScript works, `options` will be new every time so when React tests
297297
whether `options` changed between renders it'll always evaluate to `true`,
@@ -486,7 +486,7 @@ function RenderPrimes({ iterations, multiplier }) {
486486
}
487487
```
488488
489-
The reason this works is because even though you're defining the function to
489+
The reason this works is even though you're defining the function to
490490
calculate the primes on every render (which is VERY fast), React is only calling
491491
that function when the value is needed. On top of that React also stores
492492
previous values given the inputs and will return the previous value given the

0 commit comments

Comments
 (0)