JSFiddle - React, Tailwind, and code Playground

JavaScript

$(document).ready(
            function rowTextColor(columnName)
            { 
				alert ('okinuo ovo');
                $('table tr').each(function() {
                    if ($(this).find('td').eq(0).text() == columnName) 
                    {
                        $(this).css('background', 'red');
                    }})});

function rowTextColor(columnName) { 
				alert ('okinuo!');
                $('table tr').each(function() {
                    if ($(this).find('td').eq(0).text() == columnName) 
                    {
                        $(this).css('background', 'red');
                    }
					
})
   }
 
 $(document).ready(function(){
rowTextColor ("bla");
 });