I have props with value status, key, value and I am able to get the value using
this.props. status,
this.props.key,
this.props.value
But I am looking for a solution that I have to dynamically pass the props key For eg:
dynamicFunction(variable)
{
let tempValue= this.props.{here I have to pass value}
console.log(tempValue)
}
if this.props.key value is true then console have to print true
Any solutions?