Skip to content

Instantly share code, notes, and snippets.

@trinadhkoya
Created December 27, 2018 05:55
Show Gist options
  • Save trinadhkoya/caf0feef18db0d030cfcd0c53860b637 to your computer and use it in GitHub Desktop.
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
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