React: how to load and render external html file?

后端 未结 4 471
后悔当初
后悔当初 2020-11-30 01:45

I building a small blog app using React and Redux. The blog show Posts page with title, author, tags and description of a post. When clicking on title or \"read more\" butt

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-30 02:37

    You can try react-templates. This is 'the' best available. You can have your template as an external file and can load it whenever you want and it'll render like charm with all the React API available.

    Hope it helps.

提交回复
热议问题