Inject HTML into React using dangerouslySetInnerHTML
I am using React and fetching custom HTML headers and footers to be rendered above and below the main part of the React App (portal). These headers and footers are custom HTML and could be incomplete HTML on their own (but combined they would create complete HTML). For example the header may end in an opening tag like <main>
and the footer could begin with the closing tag </main>
with the portal nested inside.