리액트 18에서 이야기하는 동시성 모델에 대해서 알아보도록 하겠습니다. 동시성 모델은 하나의 기능이 아닙니다. 우리가 눈으로 볼 수 없는 내부 구현 메커니즘이라고 볼 수 있습니다.
[Concurrent mode]
https://react.dev/blog/2022/03/29/react-v18#what-is-concurrent-react
(It’s a new behind-the-scenes mechanism that enables React to prepare multiple versions of your UI at the same time)
Key : rendering is interruptible
Before
— without any concurrent
— updates are rendered the same as in previous
— with synchronous rendering, once an update starts rendering, noting can interrupt it (until user can see the result on screen)
after