Created
November 6, 2016 10:15
-
-
Save adnaan/3f01d8047ecf2904d49adc9fcce3d85a to your computer and use it in GitHub Desktop.
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
/*@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