Aricles related to

JavaScript



How to smoothly develop node modules locally using npm link

So you've found a small piece of code that is a perfect candidate to become a reusable node module. You extract the code into a module, but then begs the question — how can you test the module locally in a project? JavaScript is all about modules nowadays. With minimal effort…



ES6: Create, modify and interact with Maps in JavaScript

In this post we're going to take a look at a new data structure introduced in ES6 called Map. The Map data structure is probably familiar to most people out there, either from other languages or the similarities to the JavaScript object literal. Now let's dive into how JavaScripts version…


React: Improve the performance by using PureComponents

In this post we're going to look at PureComponents in React. So what is a PureComponent? A PureComponent is just the same as a normal react component except for one thing — the implementation of shouldComponentUpdate. A PureComponent only does a shallow comparison of the props and state to decide if…


ES6: Working with Sets in JavaScript

In this post we're continuing to look at features introduced in ES6. Amongst all the cool things happening in ES6, we find a few new data structures — one of them being the Set. So what is actually a Set? A Set is a data structure that store unique values of…