React Update String in useState does not work as expected

welcome to shbcf.ru