Last active
September 9, 2016 03:43
-
-
Save alyssaBiasi/99536d3cb6bc3f978308f2181c139d86 to your computer and use it in GitHub Desktop.
REA ReactJS Performance Debugging "Connecting with View Models"
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
const SearchBarContainer = ({ viewModel }) => ( ... ); | |
const mapStateToProps = ({ filters }) => ({ | |
viewModel: new ViewModel(filters.channel, filters.filters, filters.sortType) | |
}); | |
export default connect(mapStateToProps)(SearchBarContainer); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment