Component life cycle overview
"Shawn, now let's start taking a look at how to dynamically fetch data from https://openlibrary.org/, store it in our component, and render it after making it compatible to render.
A component goes through different life cycle events. They help facilitate when we should initialize which part of a component or when should some external data be fetched.
We have already seen some of these methods such as render, getInitialState, and getDefaultProps.
An updated detailed list and example for the same can be found at http://videos.bigbinary.com/react/react-life-cycle-methods-in-depth.html.
Let's go through each of these, one by one, and how they can be used so that we can start fetching dynamic information for display. Here ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access