Localstorage woes again; multiple requests; creating common components

This commit is contained in:
James Barnsley
2016-10-18 21:57:29 +13:00
parent bd3ac79055
commit 51bf248ac9
14 changed files with 179 additions and 17 deletions

28
src/js/components/AlbumGrid.js Executable file
View File

@ -0,0 +1,28 @@
import React, { PropTypes } from 'react'
import AlbumGridItem from './AlbumGridItem'
export default class AlbumGrid extends React.Component{
constructor(props) {
super(props);
}
render(){
if( this.props.items ){
return (
<ul className="grid album-grid">
{
this.props.items.items.map(
(album, index) => {
return <AlbumGridItem item={album} key={index} />
}
)
}
</ul>
);
}
return null;
}
}