Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 1.05 KB

File metadata and controls

22 lines (17 loc) · 1.05 KB

code fellows 301

Read: 02 - State and Props

Reading

  1. Render happens before the component mounts.
  2. The first thing to happen was the mounting stage. A component is created and put in the DOM.
  3. Constructor, render, react update, componentDidMount, componentWillUnmount
  4. ComponentDidMount is where things are loaded from a network request or if you need to initialize the DOM.
  1. Props are what you pass into a function. It is what you want your to initialize your function to.
  2. Props are passed into components and states are handled inside of components.
  3. The application is rerendered in the state bsaed on what the user has done.
  4. You can store counters and forms in state.

Additional Resources

React Bootstrat Documentation Netlify