JSFiddle - React, Tailwind, and code Playground

JavaScript

var price = 10, div = document.createElement('div')
div.innerHTML = '<input type="button" name="amount" value="' + price + '">';
document.body.appendChild(div);