Category Archives: Es6

How to Convert Array of Objects into Comma Separated String extracting only one property

Hi, I’d like to share a quick solution which always is really useful when you are handling complex object-type data structures in JavaScript / ES6 / TypeScript. That code will be useful when you want to extract some property values from an array of objects. I will share two versions one for EcmaScript 5 and Read More →

React: Use ES6 arrow functions in Classes TO avoid binding your methods with the current This object

Hi, Working with React sometimes, if you like well-organized and structured code, you will be in the situation to have to do things like: this.minus = this.minus.bind(this); We can avoid having to bind every method by using ES6 arrow functions inside of the class methods. That means that we need to use the babel plugin Read More →

A beginner’s guide to build a new SPA with ES6, SCSS, React, Webpack and HMR.

Recently, I have been working on a project which used ReactJS to build several SPAs (Single Page Applications). I’ll openly admit it was a pain for me to get working even a basic project or starter template. The reason is because there are lots of new concepts, frameworks and technologies. I decided to write down Read More →