Show Buttons
Share On Facebook
Share On Twitter
Share On Google Plus
Share On Linkdin
Share On Reddit
Share On Stumbleupon
Contact us
Hide Buttons

Author: kavit

HTML5 logo 0

sessionStorage vs localStorage vs cookie applications

ses­sion­Stor­age, local­Stor­age and cookie all are solu­tions to store data on client side. They can be used for ses­sion man­age­ment user pref­er­ence man­age­ment To setup never expir­ing tokens and many oth­ers. ses­sion­Stor­age — per­sists data…

webpack 0

webpack with babel6 and react

In this post we will walk through the basic setup to make babel6 work with web­pack. Assum­ing you have installed web­pack. On a high level, Babel has the fol­low­ing archi­tec­ture. Click on the image…

javascript 0

exports is not defined

This is very com­mon error when your project has ES6 mod­ules as well as require.js mod­ule sys­tems. Here, I will show you few exam­ples on how to require ES6 mod­ules inside an AMD module.…

apps-shortcut 0

webview — load html file

In this post I will show you how to load local html file inside a web­view fol­low these four sim­ple steps. This is a con­tin­u­a­tion of the post Get­ting started with web­view in chrome…

css31-min 0

css specificity interview question

Speci­ficity allows browsers to decide which CSS prop­erty val­ues are the most rel­e­vant to an ele­ment and, there­fore, will be applied. Speci­ficity only applies when the same ele­ment is tar­geted by mul­ti­ple dec­la­ra­tions. Inline…

nodejs_logo 0

Use node in es6 syntax with babel transpiling

Install the fol­low­ing pack­ages : npm i –save babel-register npm i –save babel-preset-latest Cre­ate an entry point. For exam­ple, index.js It tran­spiles your app at run­time by hook­ing into all require calls, and lets…

redux-logo 0

Create Reducer for Redux Applications

In redux you will have to gen­er­ate reduc­ers to update the state. You will have to call rel­e­vant reducer based on the action type. For exam­ple, func­tion setSurveySuccess(state, action) { … return newState; }…