You get a bonus - 1 coin for daily activity.
Now you have 1 coin
What is lifting state up in React?
Practice
When several components need to share the same changing data, it is recommended to lift the shared state up to their closest common ancestor. This means that if two child components share the same data from their parent, you move the state into the parent instead of keeping local state in both children.
Comments
To leave a comment
If you have any suggestion, idea, thanks or comment,
feel free to write. We really value feedback and are glad to hear your opinion.
Comments