Beginning React+Redux "Music Store" sample

This commit is contained in:
SteveSandersonMS
2016-02-05 23:28:13 +00:00
parent 35e620ae48
commit 5811c98230
69 changed files with 7508 additions and 6 deletions

View File

@@ -0,0 +1,17 @@
import * as React from 'react';
import { Link } from 'react-router';
import { Album } from '../../store/FeaturedAlbums';
export class AlbumTile extends React.Component<{ album: Album, key?: any }, void> {
public render() {
const { album } = this.props;
return (
<li className="col-lg-2 col-md-2 col-sm-2 col-xs-4 container">
<Link to={ '/album/' + album.AlbumId }>
<img alt={ album.Title } src={ album.AlbumArtUrl } />
<h4>{ album.Title }</h4>
</Link>
</li>
);
}
}