thewindsword
3/1/2019 - 7:28 AM

ReactTemplate

  • dva page Template (dva page 模板)
  • component Template (component 模板)
/* eslint-disable no-unused-vars */
import React from 'react';
import PropTypes from 'prop-types';

class TemplateComponent extends React.Component {
  render() {
    return (
      <div>
        TemplateComponent
      </div>
    );
  }
}

TemplateComponent.propTypes = {
};

TemplateComponent.defaultProps = {
};

export default TemplateComponent;
/* eslint-disable no-unused-vars */
import React from 'react';
import { connect } from 'dva';

// import common propTypes
import { PagePropTypes } from '../../utils/utils';

class Template extends React.Component {
  render() {
    return (
      <div>
        Template
      </div>
    );
  }
}

Template.propTypes = {
  ...PagePropTypes,
};

export default connect(({ home }) => ({
  home,
}))(Template);