Test event listeners in enzyme/jest within useEffect

后端 未结 0 1430
小蘑菇
小蘑菇 2021-02-03 23:43

I have a piece of code in one of my components as following where if the user uses the ESCAPE key the modal will close:

    React.useEffect(() => {
    functio         


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