React Developer — Hard
Key points
- act() synchronously processes state updates and effects in tests
- Helps prevent flaky tests by ensuring changes are applied before assertions
- Essential for testing components with asynchronous behavior
Ready to go further?
Related questions
