# @wazapp/tracking

Wazapp is using [MobX](https://mobx.js.org) for state management. It re-exports its functionality as well as `observer` from [mobx-react](https://mobx-react.js.org/).

**Please Note! For convenience purpose MobX's** [**`action`**](https://mobx.js.org/refguide/action.html#action) **has been re-exported as** [**`action.bound`**](https://mobx.js.org/refguide/action.html#bound-actions)

## Example of usage

```typescript
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);
  }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://exelord.gitbook.io/wazapp/packages/tracking.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
