Skip to main content

Posts

Featured

Using Redux with JavaScript Application

Redux is a pattern and also a library for managing your application state (data). It acts as a centralized data store for your application. Its useful in enterprise applications where data needs to be accessible in various parts or modules with pre-defined rules to make sure any manipulations happening to the data are predictable. Redux Library Redux library can integrate with any other UI framework or library. Its a standalone library without any dependency. The idea is to have nested structure of JavaScript objects maintained as states. There are 4 major components we need to consider while implementing Redux in your application. Store Reducer Dispatch Subscribe Lets understand them briefly. Reducer Reducer is a function, which defines the rules of engagement for the application data in store. The rules are defined by predefined "actions", which provides mechanism to make changes in the store in a defined way. Reducers do not modify state directly, they create a copy of exi...

Latest Posts

defaultProps & PropTypes in React

Prop Drilling and working with Context API, useContext Hook in React

Working with Uncontrolled Components in React using useRef hook