JSFiddle - React, Tailwind, and code Playground
HTML
<img src="img.jpg" id="try" width="200px" height="100px" alt="Loading">
<input type="radio" name="round" value=0 >
<input type="radio" name="round" value=1>
<input type="radio" name="round" value=2>
JavaScript
var c = ['trophy','check','Hello'] ;
$('input[name="round"]').on('click',function(){
$('#try').attr('src',c[$(this).attr('value')]+'.jpg');
alert($('#try').attr('src'));
});