Fix typo in concurrent-mode-patterns.md (#2507)

s/MyShowList/MySlowList

Updated to reflect actual component name in example: `<MySlowList text={text} />`
This commit is contained in:
Mark Allen
2019-10-28 06:11:02 -04:00
committed by Alexey Pyltsyn
parent 522459c248
commit 081bb31226

View File

@@ -808,7 +808,7 @@ function App() {
**[Try it on CodeSandbox](https://codesandbox.io/s/pensive-shirley-wkp46)**
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.
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.
We can see how typing in the input causes stutter. Now let's add `useDeferredValue`: