reading-notes


Project maintained by Razan-am Hosted on GitHub Pages — Theme by mattgraham

React lifecycle

Based off the diagram, what happens first, the render or the componentDidMount?

What is the very first thing to happen in the lifecycle of React?

Put the following things in the order that they happen: componentDidMount, render, constructor, componentWillUnmount, React Updates:

What does componentDidMount do?


React State Vs Props

What types of things can you pass in the props?

What is the big difference between props and state?

When do we re-render our application?

What are some examples of things that we could store in state?


References:

@Joshua Blankenship/React: Component Lifecycle Events

@Web Dev Simplified/React State Vs Props