Skip to content

Latest commit

Β 

History

History
19 lines (15 loc) Β· 784 Bytes

File metadata and controls

19 lines (15 loc) Β· 784 Bytes

Namaste React Course by Akshay Saini

Chapter 08 - Let's get Classy

Coding Assignment:

  • Create Class Based Component.
    • Create 2 class-based child components.
    • Pass props from Parent to child.
    • Create a constructor.
    • Create a state variable inside child.
    • Use this.setState to update it.
    • What if there are multiple state variables?
    • Write a console.log for each lifecycle method.
    • Play with the console logs to find out the correct order of their execution.
  • Create interval inside componentDidMount?
    • Use clearInterval to fix the issue caused by the interval

Created a FoodFire App from scratch using React.js and Parcel.js πŸš€ Live Project App Link 😍