Manual Approach to Testing Hooks
Explore the techniques for manually testing React Hooks.
We'll cover the following...
Testing hooks by creating a test component
The most simple way to test a hook is by using a test component and then calling the custom hook in this component.
From the previous example, if you have a custom hook like this:
const useContent = () =>
...