I have an image in my react class and want to achieve this:
<img src="images/status{this.props.status}.jpg"/>
How to do that?
I have an image in my react class and want to achieve this:
<img src="images/status{this.props.status}.jpg"/>
How to do that?
Found the solution:
<img src={'images/status' + this.props.state + '.jpg'}/>
That was hell of a noob question :)