Posts

Showing posts from August, 2021

Interview Redux

 What is Redux?     -    Redux is a library used for managing the state of application.  (or) Manage the application state in a predictable way. What are benefits?     - Predictable application state     - Decoupled architecture     - Testability     - Great Tooling      - Undo/redo     When to use Redux?  - Independent copies of the same data in multiple places  - Multiple Views need to work with the same data and be in sync.  - Data can be updated by multiple users  - Data can be update by multiple actors What are building block of Redux?          - Store          - Actions           - Reducers What is the Store?  - A Single JS object that contains the state of  the application. (Only one copy of the data is available for entire application. It can be used by different components) What is the Actions?     - Actions are Plan JS object that represents something that has happened. (Actions are know Events. For example: postingMessage is an command and MassagePostedEvent is know as Even