score:0

yes. you can do like this:

let thevariable = *somethingnew*;
const datavalue = props.table.data.rowdata[thevariable];

score:2

you can do this through property bracket access:

let thevariable = somethingnew;

const datavalue = props.table.data.rowdata[thevariable]

this can also be used during object creation:

const datavalue = {
   [thevariable]: {}
}

Related Query

More Query from same tag