我有这个代码
<EuiEmptyPrompt
iconType="securityApp"
iconColor={null}
body={intl.formatMessage({
id: "someId",
defaultMessage: "Some text {value}"
})
/>
我需要插入p标签(insted of value)。怎么做?
我尝试这样做:
body={intl.formatMessage({
id: "someId",
defaultMessage: "Some text {value}",
values: { value: <p>some new text</p> }
})
但它不起作用。该怎么办?
发布于 2018-10-10 10:09:24
如何使用FormattedHTMLMessage?
https://stackoverflow.com/questions/-100002867
复制相似问题