View on GitHub

reading-notes

Component Lifecycle / useEffect() Hook

Because the app keeps re-rendering everything to the same page.

 

Inside the <BrowserRouter />, outside a <Route />, because we have to wrap everything in the BrowserRouter tag.

 

They are unmounted.

 

The “children” variable that was passed from a parent component.

 

useState() is used in functional react components, and this.setState() is used in class react components”

Go back to table of contents