ReactJS - sorting

Hey guys, so i am trying to build this sorting visualizer with reactjs for merge sort…but i am facing some issues.

If u are familiar with react please check out:- https://stackoverflow.com/questions/63086249/changing-values-while-sorting-visualization

thanks