Can I set state from props?

That’s it. The concept of updating a state from props usually happens if you already have setting initial state from props in place . Then whenever this state gets updated due to an external source, here our request to the fake API, we may want to update this initial state from props again.

Read more