0.2.5 ā¢ Published 6 years ago
recomposer v0.2.5
Recomposer
Recompose ā¤ļø TypeScript
The library enhances Recompose when using TypeScript.
The library's goal is
- reducing unnecessary type definition
- defining types automatically
- making your app safer
ā
Usage
npm install recompose recomposer --save
The library has recompose as a peer dependency, you need to install both libraries.
API
It is still working in progress.. welcome PR! š
The recompose reference is here!
Higher-order components
- mapProps()
- withProps()
- withPropsOnChange()
- withHandlers()
- defaultProps()
- renameProp()
- renameProps()
- flattenProp()
- withState()
- withStateHandlers()
- withReducer()
- branch()
- renderComponent()
- pure()
- onlyUpdateForKeys()