DEV Community

Discussion on: Explain React to Me

Collapse
 
dance2die profile image
Sung M. Kim • Edited

pre hooks (before 2019?)

React decided where you put your logic in
(life cycle methods, such as componentDidUpdate/componentDidMount)

post hooks

You decide where you put your logic in
(hooks, such as useEffect)

with suspense (for lazy loading)

You decide what code to load and when.


In the near future (with suspense for data fetching)

Reference: "A thread on what Suspense is, and isn’t."