Author: kavit

1

Parse html response with fetch API

We will learn how to read the html response returned from REST API end point which was called using the new fetch API. The Fetch API provides an interface for fetching resources (including across...

0

Create Reducer for Redux Applications

In redux you will have to generate reducers to update the state. You will have to call relevant reducer based on the action type. For example, function setSurveySuccess(state, action) { … return newState; }...

0

Chromium flag to by pass popup to grant desktop sharing in WebRTC app

The auto-select-desktop-capture-source flag makes Chrome auto-select the provided choice when an extension asks permission to start desktop capture. For instance, following option will automatically select the entire screen in English locales. chromeOptions: [auto-select-desktop-capture-source=”Entire screen”]...

1

Redux: Implementing store from scratch

In redux, store is a very central piece which brings actions, reducers and states together. It has the following main functions and API : Holds application state; Allows access to state via getState(); Allows...

0

combineReducers in reduxjs explained

In applications where you use redux for your data management, you often combine mutiple reducers into a root reducer. Then root reducer is used to create the store. Redux ships with a utility function...

0

Es6 Spread operator

A spread operator allows an expressions to be expanded. It allows the elements of an array to be expanded, so you do not have to loop over all the array elements in the function....

0

css – align text to an image vertically

Have you ever wanted to align the text next to an image vertically? It can be done using vertical-align property as shown below. Here, we show how to align the text to top, middle,...

0

simple css reset

I use the following css reset in almost all my projects. It does the job for me. I hope it helps you, too. [codepen_embed height=”266″ theme_id=”0″ slug_hash=”YqvbwN” default_tab=”result” user=”kavitshah8″]See the Pen simple css reset...

Show Buttons
Hide Buttons