Skip to content

Commit

Permalink
Merge pull request chetannada#56 from sameerkali/main
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
chetannada authored Sep 27, 2023
2 parents 33734f5 + 57e9064 commit 9409f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Chapter 08 - Let's get Classy/Theory/Session 8 Theory.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ For more reference [React-Lifecycle-methods-Diagram](https://projects.wojtekmaj.

## Q: Why do we use `componentDidMount`?
A: The `componentDidMount()` method allows us to execute the React code when the component is already placed in the DOM (Document Object Model). This method is called during the Mounting phase of the React Life-cycle i.e after the component is rendered.
Wwe can run any piece of react code to modify the components. For ex. It's the best place to `make API calls`.
We can run any piece of react code to modify the components. For ex. It's the best place to `make API calls`.


## Q: Why do we use `componentWillUnmount`? Show with example.
Expand Down

0 comments on commit 9409f4a

Please sign in to comment.