herux-action

Action creator and extractor for Herux (or any other Flux framework)

Usage no npm install needed!

<script type="module">
  import heruxAction from 'https://cdn.skypack.dev/herux-action';
</script>

README

herux-action

Create actions and extract actions' data for Herux (or other Flux framework)

action(type, data)

Returns new action object with type and data fields

extract(actionObj)

Extract data from actionObj