React Maximum update depth exceeded error caused by useEffect only in test

后端 未结 0 1881
傲寒
傲寒 2021-01-14 19:00

I am trying to write some tests to my react component using jest and react-testing-library.

My component looks like:

//DocumentTable.js
import {useTran         


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