-
-
Save tristanpendergrass/322e0d201097ddba71ae199ffea47747 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
const MyComponent = ({ foo }) => ( | |
<div>{foo}</div> | |
); | |
// using connect | |
const FinalConnected = connect(mapStateToProps)(MyComponent); | |
// using subjects | |
const FinalSubjected = () => ( | |
<Foo render={({ get }) => ( | |
<MyComponent foo={get()} /> | |
)} /> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment