@salsita/react-helpers

1.0.0 • Public • Published

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.

empty()

An empty function that performs nothing

identity(value)

An identity function that return its input

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

Param Type Description
...sagas Generator Sagas 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

Param Type Description
value any A value that will be returned

Readme

Keywords

none

Package Sidebar

Install

npm i @salsita/react-helpers

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

6.08 kB

Total Files

7

Last publish

Collaborators