@sharyn/actions

Flux Standard Actions creator functions.

Usage no npm install needed!

<script type="module">
  import sharynActions from 'https://cdn.skypack.dev/@sharyn/actions';
</script>

README

🌹 @sharyn/actions

Flux Standard Actions creator functions.

Installation

npm install --save @sharyn/actions
# or
yarn add @sharyn/actions

Usage

import { action, errorAction } from '@sharyn/actions'

action('hello', { name: 'Sven' }, 'nice') // { type: 'hello', payload: { name: 'Sven' }, meta: 'nice' }
errorAction('bye') // { error: true, type: 'bye' }

This package is part of Sharyn, a collection of utilities and helpers.