Skip to content Skip to sidebar Skip to footer
Showing posts with the label Es6 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

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

How To Instantiate A Class From A String In Javascript

I'm in a weird situation that i need to instantiate a new Class with a string stored in a varia… Read more How To Instantiate A Class From A String In Javascript

Is There A Way To Clear An Element From A Canvas Without Eliminating The Others?

I' m building a page loader with canvas, and using the es6 classes... ALthough at the moment I … Read more Is There A Way To Clear An Element From A Canvas Without Eliminating The Others?

Es 6 Dynamically Work On Class After Definition

I was previously rolling my own Javascript OOP but now I'm playing with ES6 and want to use the… Read more Es 6 Dynamically Work On Class After Definition

Are The Es6 Classes Really Semantic Sugar?

If they are just semantic sugar how can I get the same result of the following es6 scripts in es5? … Read more Are The Es6 Classes Really Semantic Sugar?