Understanding flushSync: Mastering Batching Behavior in ReactJS