Is it possible to avoid prop drilling in this scenario?
Hello, is it possible to reset the input text from top level component
Main
other way than just prop drilling input text
state from Main
component?
3 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Lifting State Up
Often, several components need to reflect the same changing data. We recommend lifting the shared state up to their closest common ancestor. Let’s see how this works in action.
https://beta.reactjs.org/learn/sharing-state-between-components
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View