New May 28, 2026

(Partial) React hydration of dynamically created documents

Libraries, Frameworks, etc. All from Newest questions tagged reactjs - Stack Overflow View (Partial) React hydration of dynamically created documents on stackoverflow.com

I'm developing an extended dialect of Markdown. I want to make certain elements interactive and am aiming for a SSR/hydration approach using vanilla React. However most of the document is "dumb" HTML, so I would like to serve it as-is and not make it part of the React component tree.

I'm assuming this isn't an exotic use case and there should be best practices for it. But the difficulties I've run into trying various approaches are:

What solution can you recommend? If I'm thinking about the whole situation in a wrong way tell me as well! Thanks a lot!

Scroll to top