I am trying to use a function as a prop inside a component and this component is a child of another component. But the function is not working.? Can I know why. This is the
Issue: In your implementation, it is coming up from somewhere like below :
mount = createMount({strict: true});
Fix: It should be as below:
mount = createMount(); // by default, it is false
Check on it, that the mount is done properly.