content: import React from 'react'
  import { connect } from 'react-redux'
  
  export function prefetch (routeProps, dispatch) {
    return Promise.all(routeProps.components.map(component => {
      if (component && component.prefetch) {
        return component.prefetch(routeProps, dispatch)
      }
    }))
  }
  
  export class Container extends React.Component {
    render () {
      const ConnectedContainer = connect(
        this.constructor.mapStateToProps,
        this.constructor.mapDispatchToProps)(this.constructor.subject)
      return <ConnectedContainer {...this.props} />
    }
  }
  