Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 437 Bytes

api.md

File metadata and controls

36 lines (23 loc) · 437 Bytes
description
Reatom APIs

API

Actions

{% 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" %}

Title

Description {% endhint %}