【发布时间】:2016-06-01 08:10:41
【问题描述】:
我正在使用 Thymeleaf 和 reactJS 运行 springboot 应用程序。通过在页面中使用 th:text 从 message.properties 读取所有 HTML 文本,但是当我在 reactJS HTML 块中有 th:text 时,reactJS 似乎对此很生气。
render() {
return (
<input type="text" th:text="#{home.welcome}">
)
}
错误是:
Namespace tags are not supported. ReactJSX is not XML.
除了使用 dangerouslySetInnerHTML 之外,还有其他方法吗?
谢谢!
【问题讨论】:
标签: html spring reactjs spring-boot thymeleaf