Include custom html #2680
Replies: 3 comments 6 replies
-
You can render html directly in react using the dangerouslySetInnerHtml prop in any element. |
Beta Was this translation helpful? Give feedback.
-
Did you find a solution to this in the end, I am trying to do the same thing? template is a object containing a bunch of block html strings that I am trying to integrate with remix functionality.
It mostly works but because i can't find a way to include I have tried wrapping it all in a normal head and using |
Beta Was this translation helpful? Give feedback.
-
No solution, sorry. We don't use remix
KieranGreenwood ***@***.***> schrieb am Fr., 17. Mai 2024,
18:50:
… Found a way using html-react-parser
<https://www.npmjs.com/package/html-react-parser>.
<head>
{parse(template.Head)}
<Meta />
<Links />
</head>
—
Reply to this email directly, view it on GitHub
<#2680 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEEO552XDMXFTG3EU4DTTTZCYYMVAVCNFSM5SZTDNH2U5DIOJSWCZC7NNSXTOKENFZWG5LTONUW63SDN5WW2ZLOOQ5TSNBXGMYTONQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi, how can I include custom html in root.tsx? We have some generated html pages from another team which we would like to include as the project root. Is that possible? A full html file with head (with meta tags and so on) and body (with html elements)
Beta Was this translation helpful? Give feedback.
All reactions