The application is receiving from the server an HTML file.
This data (responseToPost) can be shown on the page like this:
<div dangerouslySetInnerHTML={{ __html: this.state.responseToPost }} />
I was wondering if it's possible to create a new URL where to show this data?
The html file has this format:
<hr />
<p>title: "my-title"</p>
<h2 id="123">a....
and I want that the created page to be like: localhost:3000/my-title
and show the HTML on that page.
Is it something possible? What approach should I use?