JSFiddle - React, Tailwind, and code Playground
HTML
<form name="myform">
<input type="radio" name="foo" value="10"> foo </input>
<input type="radio" name="foo" checked value="30"> bar </input>
</form>
JavaScript
var myform = document.forms.myform;
var radio = myform.elements.foo;
var price = radio.value;
console.log(price);