html-react-parser

Next.js render app inside html markup coming as string

China☆狼群 提交于 2021-01-28 03:15:38
问题 I need to build my Next.js app inside a third-party html markup. The markup is given as follows: header.txt <html> <head> <title>Some title</title> </head> <body> <header>Some header</header> <div> footer.txt </div> <footer>Some footer</footer> </body> </html> This files are dynamically generated into a folder. When I render my next.js application, I need to wrap them around my application. I created a working example using the package called: html-react-parser I parse the markup from the