8 Handling Side Effects
Before you begin: Join our book community on Discord
Give your feedback straight to the author himself and chat to other early readers on our Discord server (find the "react-key-concepts-2e" channel under EARLY ACCESS SUBSCRIPTION).
https://packt.link/EarlyAccess
Learning Objectives
By the end of this chapter, you will be able to do the following:
- Identify side effects in your React apps.
- Understand and use the
useEffect()
Hook. - Utilize the different features and concepts related to the
useEffect()
Hook to avoid bugs and optimize your code. - Handle side effects related and unrelated to state changes.
Introduction ...
Get React Key Concepts - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.