JSFiddle - React, Tailwind, and code Playground
by Kai Hendry
HTML
<div id="amount"></div>
JavaScript
const query = new URL(location).searchParams
const amount = parseFloat(query.get('amount'))
console.log("amount", amount)
document.getElementById('amount').innerText = amount