Created
December 27, 2018 05:55
-
-
Save trinadhkoya/caf0feef18db0d030cfcd0c53860b637 to your computer and use it in GitHub Desktop.
How to handle multlple HOC(Higher Order Components) to Component in React Native/React
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 {compose} from "redux"; | |
import {connect} from "react-redux"; | |
const composedHoc = compose( | |
connect(mapStateToProps), | |
withCurrentUser, | |
checkSession, | |
checkInternetConnection | |
); | |
export default composedHoc; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment