index.js
605 Bytes
import React from 'react';
import { connect } from 'react-redux';
import { Layout } from 'antd';
import cx from 'classnames';
class HomeContainer extends React.Component {
static propTypes = {
}
constructor(props) {
super(props);
}
componentDidMount() {
}
render() {
return (
<div className={cx('home_wrap')}>
page is home
</div>
);
}
}
const mapState = (state) => {
const { router: { location = {} } } = state;
return {
location
};
};
export default connect(mapState)(HomeContainer);