import React, { Component } from 'react'; import { Redirect } from 'react-router'; import { BrowserRouter as Router, Route, Link, Switch } from "react-router-dom"; import PropTypes from 'prop-types'; import classNames from 'classnames' class RightHotQuestion extends Component { constructor(props) { super(props) this.state = { } } // renderHotMemos() { const { hot_memos } = this.props; if (!hot_memos) { return '' } return hot_memos.map((item, index) => { return
15 ? item.subject : '' } > {item.subject}

{item.replies_count} 回答 { !!item.tag && item.tag.length ? 来自 {item.tag.join('/')} : ''}

}) } render() { const { match, history, currentPage } = this.props return (

热门问题

{this.renderHotMemos()}
); } } export default RightHotQuestion;