How to use Thymeleaf th:text in reactJS

后端 未结 3 680
再見小時候
再見小時候 2021-02-07 10:41

I am running a springboot application with Thymeleaf and reactJS. All the HTML text are read from message.properties by using th:text in the pages, but when I have th:text in re

3条回答
  •  广开言路
    2021-02-07 10:52

    Now you can use data- prefix attributes (ex. data-th-text="${message}"). https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html#support-for-html5-friendly-attribute-and-element-names

提交回复
热议问题