JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" value="0">

JavaScript

$("input").spinner({
    max: 3,
    min: 0
});