JSFiddle - React, Tailwind, and code Playground

HTML

<img style="height: 25px; margin-top: 0px;" class="img_plus" src="{$img_path|htmlspecialchars}/spinner.svg" alt="plus">

JavaScript

$('.img_plus').attr('style', 'height:14px;margin-top:3px;');