TypeError:comments.map不是React中的函数
映射时出现以下错误:TypeError:comments.map不是函数。请帮助我解决以下错误。我在哪里出错了,它作为组件正常工作,但是一旦我将RenderComments转换为功能,它就会返回以下错误。
DishDetail文件:
import React from 'react';
import {
Card,
CardImg,
CardBody,
CardTitle,
CardText
} from 'reactstrap';
function RenderDish({
...