首页 > 解决方案 > Reactjs:如何渲染从道具传递的HTML标签

问题描述

我如何渲染从props.

前任:

props {
 explain: "`<b>`!! Checkin `</b>`"
}

我想根据 HTML 标签呈现它。它可以是<p>or <b>or <h2>or any other 的任何标签。

{props.explain}会的!报到

这里有任何建议。

标签: reactjstagsrendering

解决方案



推荐阅读