Mapping an array in React uses values of previous render

后端 未结 0 649
南旧
南旧 2021-01-23 16:55

I am building a custom hook for react, which applies filter(by category) and search to an array.

const amountSmallestFirst = (a, b) => {
  return a.amount - b.         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题