Explain lifting state up(React) Like I'm Five

franciscoaguilars

Francisco Aguilar

Posted on September 1, 2020

Explain lifting state up(React) Like I'm Five

Hey guys, I'm a Rails ''entry'' developer(unemployed) and I am now in my part time trying to learn React, I saw in a tutorial where they ''lift state up'' so the State only lives in the parent component and it passes down to its children component via props, now, how common is that? Is it better that way or should I leave each components with its own state.
I think it's much messy but idk, I'm a begginer!

💖 💪 🙅 🚩
franciscoaguilars
Francisco Aguilar

Posted on September 1, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Learn Rust in 3 Months
explainlikeimfive Learn Rust in 3 Months

November 21, 2024

Callback Functions
callbackfunctions Callback Functions

October 30, 2024

Most Useful Jenkins Plugins and Their Use Cases
explainlikeimfive Most Useful Jenkins Plugins and Their Use Cases

October 28, 2024

Top Interview questions for DevOps Part-5