import * as React from 'react'; import { Link } from 'react-router'; import { provide } from 'redux-typed'; import { ApplicationState } from '../../store'; import { actionCreators } from '../../store/FeaturedAlbums'; import { AlbumTile } from './AlbumTile'; class Home extends React.Component { componentWillMount() { this.props.requestFeaturedAlbums(); } public render() { return

MVC Music Store

; } } // Selects which part of global state maps to this component, and defines a type for the resulting props const provider = provide( (state: ApplicationState) => state.featuredAlbums, actionCreators ); type HomeProps = typeof provider.allProps; export default provider.connect(Home);