2 ms·
Like you'd test any other component? https://reactjs.org/docs/hooks-faq.html#how-to-test-components-that-use-hooks https://reactjs.org/docs/hooks-faq.html#how-
by coldtea 8y ago
Like you'd test any other component?
https://reactjs.org/docs/hooks-faq.html#how-to-test-components-that-use-hooks https://reactjs.org/docs/hooks-faq.html#how-to-test-componen...
What exactly looks difficult about testing them? Existing components already carry state and use lifecycle methods...