acdlite/recompose
Copy this badge! ↑
branch tests props and applies one of two HoCs, for true and false
branch-test.js
branch defaults third argument to identity function
branch-test.js
branch third argument should not cause console error
branch-test.js
componentFromProp creates a component that takes a component as a prop and renders it with the rest of the props
componentFromProp-test.js
componentFromStream creates a component from a prop stream transformation
componentFromStream-test.js
componentFromStream unsubscribes from stream before unmounting
componentFromStream-test.js
componentFromStream renders nothing until the stream emits a value
componentFromStream-test.js
handler multiple observers of props stream
componentFromStream-test.js
complete props stream before unmounting
componentFromStream-test.js
completed props stream should throw an exception
componentFromStream-test.js
componentFromStreamWithConfig creates a stream with the correct stream type.
componentFromStreamWithConfig-test.js
compose composes from right to left
compose-test.js
compose can be seeded with multiple arguments
compose-test.js
compose returns the identity function if given no arguments
compose-test.js
compose returns the first function if given only one
compose-test.js
createEventHandler creates an event handler and a corresponding stream
createEventHandler-test.js
handles multiple subscribers
createEventHandler-test.js
createSink creates a React component that fires a callback when receiving new props
createSink-test.js
defaultProps passes additional props to base component
defaultProps-test.js
defaultProps has lower precendence than props from owner
defaultProps-test.js
defaultProps overrides undefined owner props
defaultProps-test.js
flattenProps flattens an object prop and spreads it into the top-level props object
flattenProp-test.js
fromRenderProps passes additional props to base component
fromRenderProps-test.js
fromRenderProps passes additional props to base component with custom renderPropName
fromRenderProps-test.js
fromRenderProps passes additional props to base component with 2 RenderPropsComponents
fromRenderProps-test.js
fromRenderProps meet toRenderProps
fromRenderProps-test.js
fromRenderProps with multiple arguments #693
fromRenderProps-test.js
getContext works
getContext-test.js
getDisplayName gets the display name of a React component
getDisplayName-test.js
copies non-React static properties from base component to new component
hoistStatics-test.js
does not copy blacklisted static properties to new component
hoistStatics-test.js
isClassComponent returns false for functions
isClassComponent-test.js
isClassComponent returns true for React component classes
isClassComponent-test.js
lifecycle is a higher-order component version of React.Component
lifecycle-test.js
mapProps maps owner props to child props
mapProps-test.js
mapPropsStream creates a higher-order component from a stream
mapPropsStream-test.js
mapPropsStreamWithConfig creates a higher-order component from a stream and a observable config
mapPropsStreamWithConfig-test.js
mapPropsStreamWithConfig creates a stream with the correct config
mapPropsStreamWithConfig-test.js
nest nests components from outer to inner
nest-test.js
onlyUpdateForKeys implements shouldComponentUpdate()
onlyUpdateForKeys-test.js
onlyUpdateForPropTypes only updates for props specified in propTypes
onlyUpdateForPropTypes-test.js
onlyUpdateForPropTypes warns if BaseComponent does not have any propTypes
onlyUpdateForPropTypes-test.js
pure implements shouldComponentUpdate() using shallowEqual()
pure-test.js
renameProp renames a single prop
renameProp-test.js
renameProps renames props
renameProps-test.js
renderComponent always renders the given component
renderComponent-test.js
renderNothing returns a component that renders null
renderNothing-test.js
setDisplayName sets a static property on the base component
setDisplayName-test.js
works with RxJS 5
setObservableConfig-test.js
works with RxJS 4
setObservableConfig-test.js
Load More