how to test a hook with async state update in useEffect?

前端 未结 0 1512
忘了有多久
忘了有多久 2020-12-22 20:26

i have a simple hook that fetches the value and sets it to option as follows:

import Fuse from \'fuse.js\'
import React         


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