text: import React, {Component} from "react";
  
  export default class LifeCycle extends Component {
    componentDidMount() {
      if (this.props.onMount) {
        this.props.onMount.call(this, this);
      }
    }
  
    componentWillUnmount() {
      console.log("componentWillUnmount", this); //sy-log
      if (this.props.onUnmount) {
        this.props.onUnmount.call(this, this);
      }
    }
    render() {
      return null;
    }
  }
  