React 18 has introduced a key new concept known as “concurrency” Concurrency involves the simultaneous execution of multiple state updates. Along with concurrency, there are two new hooks introduced by React 18 known as the UseTransition() and the UseDeferredValue() Hooks both help with de-prioritizing state updates, but the question is when should they be used?
Table of contents
What is Concurrent React?Setting up the projectImplementing the useTransition()What does isPending do?Open Source Session ReplayImplementing useDeferredValue()When should they be used, and when not?Conclusion2 Comments
Sort: