import React from 'react' import { inject } from 'ioc' import PropTypes from 'prop-types' @inject({ // keep it `isRequired`-free to allow mock injection via props Link: PropTypes.func }) export default class extends React.Component { static propTypes = { // you can add `isRequired` to the component's propTypes definition Link: PropTypes.func.isRequired } render() { const { Link } = this.props return (
) } }