- How do you create
Nested Routes react-router-domconfiguration? - Read about
createHashRouter,createMemoryRouterfrom React Router docs. - What is the
order of life cycle method callsinClass Based Components? - Why do we use
componentDidMount? - Why do we use
componentWillUnmount? Show withexample. - (Research) Why do we use
super(props)inconstructor? - (Research) Why
can't we havethecallback functionofuseEffect async?
- Create
Class BasedComponent.- Create 2
class-based child components. Pass propsfromParent to child.- Create a
constructor. - Create a
state variableinside child. - Use
this.setStateto update it. - What if there are
multiple state variables? - Write a
console.logfor each lifecycle method. - Play with the
console logsto find out thecorrect order of their execution.
- Create 2
- Create
intervalinsidecomponentDidMount?- Use
clearIntervaltofix the issuecaused by theinterval
- Use