JSFiddle - React, Tailwind, and code Playground
HTML
<input type="button" class="item_add" value="Добавить в корзину" onclick="this.value = 'sdsfsdfds'; this.style.color = 'red'" />
<input type="button" class="item_add" value="Добавить в корзину" onclick="this.value = 'sdsfsdfds'; this.style.color = 'red'" />