description |
---|
Reatom APIs |
{% tabs %} {% tab title="JavaScript" %}
const update = declareAction()
update(42) // { type: 'action [1]', payload: 42 }
{% endtab %}
{% tab title="TypeScript" %}
const update = declareAction<number>()
update(42) // { type: 'action [1]', payload: 42 }
{% endtab %} {% endtabs %}
{% hint style="info" %}
Description {% endhint %}