Rendering external HTML/React components dynamically in React
Is it possible to take HTML/JSX content from an external source and render it in dynamically in React? In our case we want to take content from the Wordpress API and render it on both the client and the server (we're using NextJS) So, the Wordpress API returns a JSON response which includes a content property which is a string of HTML/JSX. the content would look something like this. { content: "<div><Slider imageCount="5" galleryID="1"></Slider><span>This is an image gallery</span></div>" } So, as you can see it would be a mix of HTML and React components/JSX, represented as a string I would