MCPcopy
hub / github.com/ryanseddon/react-frame-component / Content

Class Content

src/Content.jsx:4–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import PropTypes from 'prop-types';
3
4export 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected