Marcisbee / radi

🌀Tiny (in size) front-end framework with no extra browser re-flows
https://radi.js.org
MIT License
948 stars 34 forks source link

Update actions #31

Closed Marcisbee closed 6 years ago

Marcisbee commented 6 years ago

Adds new event after{ActionName}.

Example usage

class {
  state = {
    count: 0,
  }

  @action
  change(count) {
    return { count }
  }

  on = {
    afterChange() {
      console.log('Count just changed to', this.state.count);
    }
  }
}