JSFiddle - React, Tailwind, and code Playground

HTML

<form novalidate>
    <input name="formvalue" type="text" ng-model="formvalue" required />
    <input type="submit" />
</form>

CSS

input.ng-dirty.ng-invalid { background-color: red }