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


Use es6 and es6+ in eslint with babel

It seems like Eslint does not sup­port ES6/ES6+ exper­i­men­tal fea­tures out of the box at the time of writ­ing. To do that you need to install a dev depen­dency called babel-eslint and then specify…


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…


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


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


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…


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