React-LifeCycle
React Lifecycle
describe the three phases of the REact Component Lifecycle
properly explain what the
constructorandrendermethods do and their place in the React Component Lifecycleuse the
componentDidMountlifecycle method to set a components state post render
lifecycle methods chart
Pokemon project
console.log
constructorandrenderof App.jsconsole.log
renderof function Pokemon componentcreate
componentDidMountand console.log itcreate
componentDidUpdateand console.log it with logic for different parts of the state
Earthquake project
just go through the Earthquake project and show class coponent and use of
fetchto get data and update state
Build doggos project
convert App from function component to class component
create
doggosstate key in the class state object. it’s an array of image sourcesdefine
componentDidMountand usefetchto grab data from teh dog ceo apiflesh 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
Was this helpful?