Skip to content

Latest commit

 

History

History
65 lines (44 loc) · 2.11 KB

api.md

File metadata and controls

65 lines (44 loc) · 2.11 KB

Modules

Typedefs

transform-props-with

transform-props-with~default([transformations]) ⇒ HigherOrderComponent

Higher-order component generator. Will change props with passed transformaton(s). Array of transformatons is evaluated left to right.

Kind: inner method of transform-props-with

Param Type Default
[transformations] Transformation | Array.<Transformation> []

Props : object

A plain object. Should not be mutated.

Kind: global typedef

SimpleTransformation ⇒ Props

Middleware function for changing props. A function which takes Props as input and returns new Props.

Kind: global typedef

Param Type
oldProps Props

HigherOrderComponent ⇒ React.Component

Higher-order React Component. A function that enhances passed component.

Kind: global typedef

Param Type
BaseComponent React.Component

Transformation : SimpleTransformation | object

When a plane object is passed it will be used to extend props (with override).

Kind: global typedef