JSFiddle - React, Tailwind, and code Playground

HTML

<input type="number" />

JavaScript

const input = document.querySelector("input");

const update = () => {
	const value = parseInt(input.value);

	if (isNaN(value) || value < 50) {
  	input.value = 50;
  }
};

input.addEventListener("input", update);

update();