我正在 Grapesjs 的帮助下制作自定义网页。我想在react js中渲染html页面,该页面已由grapesjs编辑器保存在数据库中。以下是保存数据的格式。
![](https://i.stack.imgur.com/hd8sf.png)
现在我只能在检查窗口中获取 html 代码,但是如何在页面上呈现它?
import React from "react";
import axios from "axios";
// import {renderWebpage} from "../actions/webpage"
export const Page: React.FC = () => {
const renderWebpage = axios
.get("http://localhost:8080/61ea7fd2268f37443ca4d59a")
.then((response) => {
console.log("response", response);
console.log(response.data, "data");
});
return <div>demo</div>;
};