You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I get content from API, it will be dynamic. let data = callApi(); <InnerHTML html={data} />
My data look like:
<form>
<p>{title}</p>
</form>
<script>
function test(){}
</script>
Now, how to remove old content after get new content?
Because, after get new content, It will notify some error like: "Uncaught SyntaxError: Identifier 'form' has already been declared"
Please help me this issue. Thanks
The text was updated successfully, but these errors were encountered:
I'll change as long as you properly update the content, this repo contains an example of how to do it, also, not sure if the interpolation will work here: {title} since all the content rendered will be outside React context
When I get content from API, it will be dynamic.
let data = callApi(); <InnerHTML html={data} />
My data look like:
Now, how to remove old content after get new content?
Because, after get new content, It will notify some error like: "Uncaught SyntaxError: Identifier 'form' has already been declared"
Please help me this issue. Thanks
The text was updated successfully, but these errors were encountered: