antd-npm-demo
Version:
React & Redux & Ant.Design
34 lines (28 loc) • 737 B
JavaScript
import React from 'react'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import Action from '../../store/actions'
import { QueueAnim, Table } from 'antd'
import { Link } from 'react-router'
import Nodebar from '../../components/Nodebar/Nodebar'
import TopicList from '../../components/TopicList/TopicList'
import './Home.less'
(
state => ({...state}),
dispatch => bindActionCreators(Action, dispatch)
)
export default class HomeView extends React.Component {
constructor () {
super()
}
componentWillMount () {
}
render () {
return (
<div className="content">
<Nodebar/>
<TopicList dataSource={this.props.topic.current}/>
</div>
)
}
}