merge-prop-functions

A util for merging two functions that return props objects into a single function.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
merge-prop-functions
1.1.06 years ago6 years agoMinified + gzip package size for merge-prop-functions in KB

Readme

Merge Prop Functions
merge-prop-functions is a simple utility for merging two functions that produce React props objects into a single function. Any function props will be merged into a single function that calls both functions.

Installation

Install merge-prop-functions as a dependency
# Yarn
$ yarn add merge-prop-functions

# NPM
$ npm install merge-prop-functions

Usage

Usage is simple.
var newPropsFunc = mergeProps(originalPropsFunc, additionalPropsFunc);