Client-side navigation and React's dangerouslySetInnerHTML
Published on in JavaScript, React and TypeScript
Last updated on
To handle internal link clicks when using dangerouslySetInnerHTML
,
attach click event listeners to the rendered links.
In the listener, push the link to the browser history.