在我目前正在工作的应用程序中,有一个“描述”栏,我希望有丰富的文本。这将以Markdown格式存储在我的数据库中。在使用react-table让单元格包含另一个组件中的内容时,有没有什么方法可以让react-markdown呈现该内容?
在实现react-table之前,我可以使用<td><ReactMarkdown>{item.description}</ReactMarkdown></td>解析description单元格中的标记,但我看不到使用react-table实现这一点的方法。
这就是有问题的代码:https://github.com/TechValleyCenterOfGravity/STUFF/blob/main/src/App.js
发布于 2021-03-29 05:51:46
我错过了一个大写的C- Cell: props => <ReactMarkdown>{ props.value }</ReactMarkdown>成功了
https://stackoverflow.com/questions/66845383
复制相似问题