merge-prop-functions

1.1.0 • Public • Published

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);

Readme

Keywords

none

Package Sidebar

Install

npm i merge-prop-functions

Weekly Downloads

67

Version

1.1.0

License

MIT

Unpacked Size

18.4 kB

Total Files

12

Last publish

Collaborators

  • dumptruckman