reading-notes

code fellows reading notes

View on GitHub

Reading-Notes

code fellows 301

Read: 02 - State and Props

Reading

React Lifecycle

  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.

React State Vs Props

  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