Email - harun.bspt2014@gmail.com Phone - +8801717615827
PHP, JS, CSS, Python, and Machine Learning Technology

CreateStore (reducer, [preloadedState], [enhancer])

CreateStore (reducer, [preloadedState], [enhancer])

We create a store, using the createStore function. We pass it our reducer, and then use the compose function to create a single function from two other functions. It takes other middlewares and ...

Container-component

Container-component

And container is a component , where I am using a Redux state inside of a React component. Because note, while we have the application state in redux store, but here in this component I am again ...

Store Enhancers are Higher Order Functions

Store Enhancers are Higher Order Functions

Compose is used when you want to pass multiple store enhancers to the store. Store enhancers are higher order functions that add some extra functionality to the store. The only store enhancer which ...

BindActionCreators

BindActionCreators

One of the crucial thing in Redux is binding the action creators to dispatch. Without this binding firing an action creator will do nothing. Now mapDispatchToProps is not the only way of bind ...

Payload can be any valid JS

Payload can be any valid JS

Payload is a non-official, community accepted (de facto) naming convention for the property that holds the actual data in a Redux action object. The official documentation only states that a Redux ...

Reducers – Absolute Basic

Reducers – Absolute Basic

Reducers - Absolute Basic Reducer is just a function that takes two arguments A) Action (which is just a plain JS object preferably with type property ) and B) It takes the current state of ...

Provider (Its a HOC concept)

Provider (Its a HOC concept)

If we want to link our React application with the redux store, we first have to let our app know that this store exists. This is where we come to the first major part of the react-redux library, ...

Connect component

Connect component

Connects a React component to a Redux store. The first argument to connect is mapStateToProps() function. What mapStateToProps() does is, it allows us to take our state (e.g. item state (from ...

Action Creator and Object serialization

Action Creator and Object serialization

In this file, you will write the functions that dispatch an action. These functions will be linked to your component props by the container’s mapDispatchToProps function. At that point, a component ...

What is state?

What is state?

State is used internally by components to dynamically change data. Unlike props, state can only be set within the component itself. Unlike props, state is a private feature and it strictly belongs to ...

SetState() method in ReactJS

SetState() method in ReactJS

The first thing React will do when setState is called is merge the object you passed into setState into the current state of the component. This will kick off a process called reconciliation. The end ...

Translate »
Register New Account