Skip to content

Instantly share code, notes, and snippets.

@alyssaBiasi
Last active September 9, 2016 03:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alyssaBiasi/99536d3cb6bc3f978308f2181c139d86 to your computer and use it in GitHub Desktop.
Save alyssaBiasi/99536d3cb6bc3f978308f2181c139d86 to your computer and use it in GitHub Desktop.
REA ReactJS Performance Debugging "Connecting with View Models"
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