mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2026-01-08 09:56:45 +00:00
Beginning React+Redux "Music Store" sample
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user