text: /**
   * 封装 React.Component
   */
  
  import React from 'react'
  
  class ViewComponent extends React.Component {
    // constructor (props) {
    //   super(props)
    // }
  
    componentWillMount () {
      // console.log('componentWillMount')
    }
  
    componentDidMount () {
      // console.log('componentDidMount')
    }
  
    componentWillUnmount () {
      // console.log('componentWillUnmount')
    }
  }
  
  export default ViewComponent
  