In React, is it possible to do smth like that:
<div className={ this.props.value === ??? ? 'foo' : '' } data-value="bar">
I'd like to put the value of data-value instead of ???
UPDATE
just to explain why would I need this.
Let's say this.props.value is an array and I have many divs like this. Now I need to go and check if this.props.value.contains([data-value]).
If there is NO access to data-value I need to change the condition for each element: this.props.value.contains('bar-1'), this.props.value.contains('bar-2'), this.props.value.contains('bar-3')
data-value?