From 80df8eae9888c61118cf9da88c90399b918da248 Mon Sep 17 00:00:00 2001 From: Andrew Clark Date: Tue, 17 Nov 2015 12:11:48 -0800 Subject: [PATCH] Update docs for mapPropsOnChange() --- docs/API.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/API.md b/docs/API.md index 712323ec..7c4dccae 100644 --- a/docs/API.md +++ b/docs/API.md @@ -35,12 +35,12 @@ const omitProps = (keys, BaseComponent) => mapProps(omit(keys), BaseComponent); ```js mapPropsOnChange( depdendentPropKeys: Array, - propsMapper: (ownerProps: Object) => Object, + propsMapper: (dependentProps: Object) => Object, BaseComponent: ReactElementType ): ReactElementType ``` -Same as `mapProps()`, but child props are only re-computed when one of the props specified by `dependentPropKeys` has been updated. This helps ensure that computationally intense `propsMapper` functions are only executed when necessary. +Similar to as `mapProps()`, but child props are only re-computed when one of the props specified by `dependentPropKeys` has changed. This helps ensure that computationally intense `propsMapper` functions are only executed when necessary. ### `withProps()`