-
-
Save itzzmeakhi/162bd93bdffbf5ee288dc445ca8a66f7 to your computer and use it in GitHub Desktop.
This file contains 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
// connectFn.js file | |
import React, { Component } from 'react'; | |
const connectFn = (mapStateToProps, mapDispatchToProps) => { | |
return (WrappedComponent) => { | |
return class extends Component { | |
render() { | |
return ( | |
<WrappedComponent /> | |
); | |
} | |
} | |
} | |
} | |
export { connectFn }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment