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

Category: ES 6

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.…

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

Redux: Implementing store from scratch

In redux, store is a very cen­tral piece which brings actions, reduc­ers and states together. It has the fol­low­ing main func­tions and API : Holds appli­ca­tion state; Allows access to state via get­State(); Allows state to…

redux-logo 0

combineReducers in reduxjs explained

In appli­ca­tions where you use redux for your data man­age­ment, you often com­bine muti­ple reduc­ers into a root reducer. Then root reducer is used to cre­ate the store. Redux ships with a util­ity function…

javascript 0

Es6 Spread operator

A spread oper­a­tor allows an expres­sions to be expanded. It allows the ele­ments of an array to be expanded, so you do not have to loop over all the array ele­ments in the function.…