Created
October 26, 2015 17:00
-
-
Save grabbou/fe882d0671be1fc1e91e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import onlyUpdateForKeys from 'onlyUpdateForKeys'; | |
const onlyUpdateForProps = (BaseComponent) => { | |
const propKeys = Object.keys(BaseComponent.propTypes || {}); | |
return onlyUpdateForKeys(propKeys, BaseComponent); | |
}; | |
export default onlyUpdateForProps; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment