describe the three phases of the REact Component Lifecycle
properly explain what the constructor and render methods do and their place in the React Component Lifecycle
constructor
render
use the componentDidMount lifecycle method to set a components state post render
componentDidMount
Lifecycle Methods Chartarrow-up-right
console.log constructor and render of App.js
console.log render of function Pokemon component
create componentDidMount and console.log it
create componentDidUpdate and console.log it with logic for different parts of the state
componentDidUpdate
just go through the Earthquake projectarrow-up-right and show class coponent and use of fetch to get data and update state
fetch
convert App from function component to class component
create doggos state key in the class state object. it’s an array of image sources
doggos
define componentDidMount and use fetch to grab data from teh dog ceo apiarrow-up-right
flesh out application with other features as time permits
allow people to specify dog breed for search
allow people to toggle select of dog images
Last updated 3 years ago