Should i call react from html?

onkeypress=“mark()”

function mark() {

  ReactDOM.render(<div dangerouslySetInnerHTML = {{__html: marked( document.getElementById('content').innerHTML)}}/></div>, document.getElementById('root'));
 
 ;};

No, definitely not. Pass the markup to a component and let it handle the rendering.