Skip to content

Commit

Permalink
Fix typo in concurrent-mode-patterns.md (#2507)
Browse files Browse the repository at this point in the history
s/MyShowList/MySlowList

Updated to reflect actual component name in example: `<MySlowList text={text} />`
  • Loading branch information
TSMMark authored and lex111 committed Oct 28, 2019
1 parent 522459c commit 081bb31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/docs/concurrent-mode-patterns.md
Expand Up @@ -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`:

Expand Down

0 comments on commit 081bb31

Please sign in to comment.