JSFiddle - React, Tailwind, and code Playground

HTML

<select id="preco_treino" name="my_select_box">
<option value="50">car</option>
<option value="100">bike</option>
</select>
<div id="showPrice"></div>

JavaScript

$('#preco_treino').change(function() {
   
    var selectVal = $('#preco_treino :selected').val();
    $('showPrice').text(selectVal);
});