Skip to content

Commit 081bb31

Browse files
TSMMarklex111
authored andcommitted
Fix typo in concurrent-mode-patterns.md (#2507)
s/MyShowList/MySlowList Updated to reflect actual component name in example: `<MySlowList text={text} />`
1 parent 522459c commit 081bb31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/concurrent-mode-patterns.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ function App() {
808808

809809
**[Try it on CodeSandbox](https://codesandbox.io/s/pensive-shirley-wkp46)**
810810

811-
In this example, **every item in `<MyShowList>` has an artificial slowdown -- each of them blocks the thread for a few milliseconds**. We'd never do this in a real app, but this helps us simulate what can happen in a deep component tree with no single obvious place to optimize.
811+
In this example, **every item in `<MySlowList>` has an artificial slowdown -- each of them blocks the thread for a few milliseconds**. We'd never do this in a real app, but this helps us simulate what can happen in a deep component tree with no single obvious place to optimize.
812812

813813
We can see how typing in the input causes stutter. Now let's add `useDeferredValue`:
814814

0 commit comments

Comments
 (0)