flâneur — a map of the web's best reading

Lifecycle of Reactive Effects – React

react.dev · 5,755 words · saved by 1 readers

The library for web and native user interfaces

Learn React Escape Hatches Copy page Copy Lifecycle of Reactive Effects Effects have a different lifecycle from components. Components may mount, update, or unmount. An Effect can only do two things: to start synchronizing something, and later to stop synchronizing it. This cycle can happen multiple times if your Effect depends on props and state that change over time. React provides a linter rule to check that you’ve specified your Effect’s dependencies correctly. This keeps your Effect synchronized to the latest props and state. You will learn How an Effect’s lifecycle is different from a co

Explore this link on the map →

related reading