How to test the useEffect and other functions inside the functional component with Jest

前端 未结 0 1978
你的背包
你的背包 2021-02-01 19:18

I have my component as below:

import React from \'react\';
const MyComponent = ({fnc1,fnc2}) =>{
   React.useEffect(()=>{
       initialise();
    });

   l         


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