Skip to content Skip to sidebar Skip to footer
Showing posts with the label Es6 Class

Es6 Class Extends Array: Workaround For Es5 Babel Transpile

I have some ES6 class inherited from Array: class Cache extends Array { add(item) { if(!item.… Read more Es6 Class Extends Array: Workaround For Es5 Babel Transpile

Conditional Export In Es2015

Let's say you're developing a polyfill and don't want to shim a class if it already exi… Read more Conditional Export In Es2015

Sessionstorage Proxy Class Scope

I am wondering how to access the native sessionStorage scope from within my custom methods. My exam… Read more Sessionstorage Proxy Class Scope

Extending Classes And Using Class Attributes In Parent Class

I have tried to solve React's annoying bind requirement as follows: class ExtendedComponent ext… Read more Extending Classes And Using Class Attributes In Parent Class

Es6 Functions, Arrow Functions And 'this' In An Es6 Class

class App extends Component { constructor(props) { ... } onChange = (e) => this.setSt… Read more Es6 Functions, Arrow Functions And 'this' In An Es6 Class