1.0.0 • Published 7 years ago

@salsita/react-helpers v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

react-helpers

Install

Install this package with npm

npm i @salsita/react-helpers

or yarn

yarn add @salsita/react-helpers

API

Functions

composeSaga(...sagas) ⇒ Generator

A helper function to compose multiple sagas

Given two Sagas as arguments, eg. compose(f, g) function composition f∘g is performed. Please note that functions are executed in backward order.

Kind: global function
Returns: Generator - Composed Saga

ParamTypeDescription
...sagasGeneratorSagas to be composed

empty()

An empty function that performs nothing

Kind: global function

identity(value)

An identity function that return its input

Kind: global function

ParamTypeDescription
valueanyA value that will be returned