I have just replaced react-router from v3 to v4. But I am not sure how to programmatically navigate in the member function of a Component. i.e in handleClick() function...
I’m starting out a new vue.js project so I used the vue-cli tool to scaffold out a new webpack project (i.e. vue init webpack). As I was walking through...
UPDATE: Recently a brilliant article from Mozilla came up. Read it if you’re curious. As you may know they are planning to include new Symbol primitive type in ECMAScript...
I am trying to run some ES6 code in my project but I am getting an unexpected token export error. export class MyClass { constructor() { console.log("es6"); } }...
I want to test that one of my ES6 modules calls another ES6 module in a particular way. With Jasmine this is super easy — The application code: //...
Lets say I have the following map: let myMap = new Map().set('a', 1).set('b', 2); And I want to obtain ['a', 'b'] based on the above. My current solution seems...
I have a relatively straightforward issue of trying to add inline scripting to a React component. What I have so far: 'use strict'; import '../../styles/pages/people.scss'; import React, { Component...
Let’s say I have an object: { item1: { key: 'sdfd', value:'sdfd' }, item2: { key: 'sdfd', value:'sdfd' }, item3: { key: 'sdfd', value:'sdfd' } } I want to...
What is the difference between Node’s module.exports and ES6’s export default? I’m trying to figure out why I get the “__ is not a constructor” error when I try...
With () => {} and function () {} we are getting two very similar ways to write functions in ES6. In other languages lambda functions often distinguish themselves by...