Web / ReactJS Interview questions
What is "Lift State Up" pattern in React?
Lifting the state from local child components to the closest ancestor is called lifting the state up in React. If the state of a parent component is used by a child component (A) as well as its grandchild component, consider moving the grandchild as a sibling (becomes new child component (B)) to the child component (A).
More Related questions...