Company
Date Published
Author
Steven
Word count
3133
Language
English
Hacker News points
None

Summary

Redux is a state management framework for use in JavaScript-based front-end web apps, helping to centralize state access and state updating logic, which can help keep the structure of complex applications manageable. Redux is library-agnostic, but React Redux provides convenient functions for working with React. When using React with Redux, it's generally best to use the official React Redux API, as it does a lot of work to make sure that Redux and React work together correctly. Redux middleware lets you wrap the dispatch function to accomplish other goals that aren't provided by Redux. However, not all state should be in Redux; many components can manage their own local state using Hooks API.