Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How can we create unit tests for a custom hook in React that triggers a callback function when an element becomes visible?