State and Props
Reading
- Based off the diagram, what happens first, the ‘render’ or the ‘componentDidMount’?
 
Render.
- What is the very first thing to happen in the lifecycle of React?
 
Mounting.
- Put the following things in the order that they happen: componentDidMount
,render,constructor,componentWillUnmount,React Updates` 
constructor > componentDidMount > React Updates > render > componentWillUnmount
- What does componentDidMount do?
 
This method is invoked immediately after a component is mounted.
Videos
- What types of things can you pass in the props?
 
Data and functions.
- What is the big difference between props and state?
 
Props can be passed while states cannot.
- When do we re-render our application?
 
When we want to change what is shows to the user.
- What are some examples of things that we could store in state?
 
user name, user email, variables to show or hide some components.
 
| 301 | Home | 
|---|---|
| read01 | Introduction to React and Components | 
| read02 | State and Props | 
| read03 | Passing Functions as Props | 
| read04 | React and Forms | 
| read05 | Putting it all together | 
| read06 | NODE.JS | 
| read07 | REST | 
| read08 | APIs | 
| read09 | FUNCTIONAL PROGRAMMING | 
| read10 | In memory storage | 
| read11 | Authentication | 
| read12 | Mongo and Mongoose | 
| read13 | CRUD | 
| read14 | Project Ideas | 
| read15 | Project Kickoff |