mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
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:
committed by
Alexey Pyltsyn
parent
522459c248
commit
081bb31226
@@ -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`:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user