Open developerasun opened 2 years ago
The simplest way to pass data from a parent to a child in a React Application is by passing it on to the child's props. But an issue arises when a deeply nested child requires data from a component higher up in the tree. If we pass on the data through the props, every single one of the children would be required to accept the data and pass it on to its child, leading to prop drilling, a terrible practice in the world of React.
From the table, you must be able to comprehend where the popular opinion Redux is for large projects & Context API for small ones come from.
research : what to choose for state management between Redux and Context
watch this