external system
Anything outside React that a component must stay in step with, such as the network, a timer, a browser API, a chat server or a non-React library.
In more detail
Effects exist to synchronise with external systems. If no external system is involved, for example when you only calculate values from state, you probably do not need an Effect.
Related terms
- useEffect — The React hook for running side work, such as adding listeners or changing document.body, after a component renders.
- external store — State held outside React, in a library, a module variable or a browser API, which components subscribe to for changes.
Taught in
- useEffect Lifecycle: Mount, Dependencies, And Cleanup Phases — React 19 & Modern Component Architecture
- Avoiding Effect Antipatterns: Derived State And Events — React 19 & Modern Component Architecture