Ask HN: Favorite React Quantity Selector?

  • Depends on your use case really. Quantity of what? What's the most common quantity to be selected here? How many values to display, and so on.

    There is not one widget that fits all use cases. If you want to select the quantity of wheels that needs changing on a car for example, then you only need 0<>4, as just one example.

    Otherwise, I also default to <input type=number /> and build on that if it's needed, as it's both more accessible and is often enough with very minor edits on top of it.