const checkQs = '<html>Hi everyone, I live in +++America+++.</html>';
let newStr = checkQs.replace(
/\++(.*)\++/g,
'<p contenteditable="true" onChange={handleChange} html={"$&"} >$&</p>',
);
In here I have replaced America with contentEditable, where I can update,
But onChange
function is not working