Skip to content

Instantly share code, notes, and snippets.

@adnaan
Created November 6, 2016 10:15
Show Gist options
  • Save adnaan/3f01d8047ecf2904d49adc9fcce3d85a to your computer and use it in GitHub Desktop.
Save adnaan/3f01d8047ecf2904d49adc9fcce3d85a to your computer and use it in GitHub Desktop.
/*@flow*/
import React from 'react';
import ProductList from './components/ProductList'
import { connect } from 'react-redux';
const App = connect(({ products }) => ({
products
}))(function(props) {
return (
<div >
<h2>Popular Products</h2>
<ProductList
data={props.products.list}
loading={props.products.loading}
dispatch={props.dispatch}
/>
</div>
);
});
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment