reactjs - Reactjs:如何渲染从道具传递的HTML标签
问题描述
我如何渲染从props
.
前任:
props {
explain: "`<b>`!! Checkin `</b>`"
}
我想根据 HTML 标签呈现它。它可以是<p>
or <b>
or <h2>
or any other 的任何标签。
{props.explain}
会的!报到
这里有任何建议。
解决方案
推荐阅读
- database - 搜索 B-Tree 索引:O(log n) 中的 log 基础是什么?
- flutter - 如果触摸外部,则颤动删除 OverlayEntry
- java - Java 块没有出现
- python - 如何为数据框上的每一行创建分类
- sql - 是否可以在 Oracle SQL 中将参数作为关键字传递?
- c - 在类 Unix 系统上使用共享库时是否需要可见性声明?
- python - 为什么带有表达式 = 函数调用的 lambda 在调用之前需要 lambda 参数?
- node.js - Restful API 请求
- r - In R how can I make the for loop run faster?
- c - 错误:重新定义“struct rsa_meth_st”