biff icon indicating copy to clipboard operation
biff copied to clipboard

Biff and ES6

Open Tackyshot opened this issue 10 years ago • 0 comments

admittedly, I'm newer to the syntax of ES6 and ESNext but I am curious as to what Biff's syntax would be for creating stores?

export class SomeStore extends Biff.createStore{
  _store = [];
  addStoreItem(item){
    this._store.push(item);
  }
  //etc...
}

That is the equivalent of what I have so far, but I can't seem to figure out how to add the dispatcher handler function to the class. Am I way off base and using class incorrectly, or does Biff not have support for ES6?

Tackyshot avatar Aug 27 '15 17:08 Tackyshot