| 2 | import PropTypes from 'prop-types'; |
| 3 | |
| 4 | export default class Content extends Component { |
| 5 | static propTypes = { |
| 6 | children: PropTypes.element.isRequired, |
| 7 | contentDidMount: PropTypes.func.isRequired, |
| 8 | contentDidUpdate: PropTypes.func.isRequired |
| 9 | }; |
| 10 | |
| 11 | componentDidMount() { |
| 12 | this.props.contentDidMount(); |
| 13 | } |
| 14 | |
| 15 | componentDidUpdate() { |
| 16 | this.props.contentDidUpdate(); |
| 17 | } |
| 18 | |
| 19 | render() { |
| 20 | return Children.only(this.props.children); |
| 21 | } |
| 22 | } |
nothing calls this directly
no outgoing calls
no test coverage detected