JSFiddle - React, Tailwind, and code Playground
by mozfet
HTML
<body>
<div id="result">
</div>
</body>
JavaScript
window.onload = function () {
$('#result').text = isNumber('1')
}
function isNumber (text) {
if(text.match([0-9])) {
return true;
}
return false;
}