DEV Community

Cover image for Redux
asrafulsow
asrafulsow

Posted on

Redux

Redux is an open-source JavaScript library used to managed State. Redux Architecture
The three main part is State, Action, and Reducers Redux declared State for defines and Store is a place where the entire state of your application is listed, and also manages the status of the application and has a dispatch Function. and also Action is plain JavaScript objects that have a type field. Action is sent or dispatched from the view which are payloads that can be read by reducers. it's a pure object created to store the information of the user event. And another Redux main part is Reducer basically Reducers are functions that take the current state and an action as arguments and return a new state.

Redux has the most powerful state management tool and you can use it with any other JavaScript framework or library. And also redux is lightweight you can redux use big projects that’s why every redux project is not bigger.

context API and Redux are very similar. Basically, context API is prompted a re-render on each update of the state and re-renders all components regardless. And the other hand redux is only re-renders the update components.

Top comments (0)