javascript – React table with sorting and pagination doesn’t update

I am making a simple table in react where I have pagination (separate component) and sorting. The table should sort update when table header is clicked. It changes state of data. The data is sorted but it doesn’t update. The table is rerendered when I change page (pagination component) and it does have sorted data. … Read more