-
-
Save tristanpendergrass/95d98f50b3e2a992e5be6690fc2d070b 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 processData = someExpensiveFunction; | |
| const mapStateToProps = state => ({ | |
| foos: getFoos(state), | |
| }); | |
| const MyComponent = props => ( | |
| <div>baz: {props.baz}</div> | |
| <SubComponent data={processData(props.foos)} /> | |
| ); | |
| export default connect(mapStateToProps)(MyComponent); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment