dangerouslySetInnerHTML={{ __html: html.current }} code example
Example 1: dangerouslySetInnerHTML
//https://flaviocopes.com/react-fix-dangerouslysetinnerhtml-did-not-match/
<div
dangerouslySetInnerHTML={{
__html: '<p>test</p>'
}}></div>
Example 2: dangerouslySetInnerHTML
function createMarkup() {
return {
__html: 'First · Second' };
};
<div dangerouslySetInnerHTML={createMarkup()} />