index.js 384 Bytes
Newer Older
xuzhenghua committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
import React, { Component } from 'react';
import './index.scss';


function ListFrame(WrappedComponent) {
  return class extends Component {
    render() {
      return (
        <div className="list-frame">
          <div className="list-frame__content">
            <WrappedComponent {...this.props}/>
          </div>
        </div>
      )
    }
  };
}

export default ListFrame;