How the JavaScript event loop affects React

Understanding how the JavaScript event loop works under the hood helps explain React's rendering behaviour, state batching, and why blocking the main thread tanks your UI performance.