I am trying to implement an editor using CodeMirror in a React App and when I am implementing it, I got an error that is quite different.
In this demo below, I want to highlight every property my ‘p’ argument has, for example, name.
function name(p){
p.name = 'Rahul';
}