What is returned at the back end is a html file. How does the front end display?

the need to make a list of test questions. The data returned from the backend data, includes the dry questions,

.
data={
    stem:{
        name:"",
        path:"......1.html"
    }
}

how does the foreground react display the content of path after receiving it?

Apr.05,2021

const data = {
    stem:{
        name:'',
        path:'......1.html'
    }
}
function createMarkup(path) { return {__html: path}; };

<div dangerouslySetInnerHTML={createMarkup(data.stem.path)} />

Please read https://zhenyong.github.io/re.

for details.

iframe

Menu