Managing React State
Last updated
Was this helpful?
Last updated
Was this helpful?
Here we are talking about different ways to manage state of a react application like hooks in functional component and constructor in class based components
This new API solves one major problem–prop drilling. Even if you’re not familiar with the term, if you’ve worked on a React JS app, it has probably happened to you. Prop drilling is the processing of getting data from component A to component Z by passing it through multiple layers of intermediary React components. Component will receive props indirectly and you
Redux is a predictable state container for JavaScript apps.
It helps you write applications that behave consistently, run in different environments (client, server, and native), and are easy to test. On top of that, it provides a great developer experience, such as .
You can use Redux together with , or with any other view library. It is tiny (2kB, including dependencies), but has a large ecosystem of add-ons available.