import React from 'react' import { inject } from 'ioc' import PropTypes from 'prop-types' @inject({ Router: PropTypes.object }) export default class extends React.Component { render() { const { Router } = this.props return (

EndButton

Uses injected `Router` component without direct dependency on one

) } }