👽
Wazapp
  • Introduction
  • Packages
    • @wazapp/core
    • @wazapp/component
    • @wazapp/tracking
    • @wazapp/service
    • @wazapp/helpers
    • @wazapp/utils
Powered by GitBook
On this page

Was this helpful?

  1. Packages

@wazapp/tracking

Previous@wazapp/componentNext@wazapp/service

Last updated 4 years ago

Was this helpful?

Wazapp is using for state management. It re-exports its functionality as well as observer from .

Please Note! For convenience purpose MobX's has been re-exported as

Example of usage

import Component from "@wazapp/component";
import { observable, action } from "@wazapp/tracking";

export default class Todos extends Component {
  @observable todoItems: []

  template() {
    return (
      <div>
        <CreateForm onCreate={this.addTodo} />
        <TodoList todoItems={this.todoItems} />
      </div>
    );
  }

  @action
  addTodo(todoItem) {
    this.todoItems.push(todoItem);
  }
}
MobX
mobx-react
action
action.bound