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' import { trigger } from 'educoder' class MemoLabel extends Component { constructor(props) { super(props) this.state = { } } renderTags() { const { memo } = this.props; const arrays = memo.tag.map((item, index) => { return {item} }) return arrays } render() { const { match, history, currentPage, memo } = this.props if (!memo || !memo.tag || memo.tag.length === 0) { return '' } return (

话题标签

{this.renderTags()}
); } } export default MemoLabel;