A game-like batching strategy for React