DEV Community

Sean Saranga Amarasinghe
Sean Saranga Amarasinghe

Posted on

React Concurrent Mode

Post

Previous workarounds

Debounce and throttle are common workarounds to mitigate for example stutter in an input field while typing.

Debounce – Only update the list after the user stops typing Throttle – Update the list with a certain maximum frequency

Similar to git branches
Concurrent Mode is like React working on git branches.

Eg:- Navigating between two screens in an app

In React Concurrent Mode, we can tell React to keep showing the old screen(like another git branch), fully interactive, with an inline loading indicator. And when the new screen is ready, React can take us to it.

Read more about React Concurrent Mode in this article

Top comments (0)