text: import React from 'react';
  import _ from 'lodash';
  import VM from 'common/libs/VM';
  import Context from './context';
  
  export class YMLBase extends React.Component {
      shouldComponentUpdate(nextProps, nextState) {
          return (
              !_.isEqual(this.props, nextProps) ||
              !_.isEqual(this.state, nextState)
          );
      }
      componentWillMount() {
          const { obj } = this.props;
          obj && obj.onWillMount && VM.run(obj.onWillMount, Context(this.props));
      }
      componentDidMount() {
          const { obj } = this.props;
          obj && obj.onMount && VM.run(obj.onMount, Context(this.props));
      }
  }
  