Loading

Just like React Testing Library, React Hooks Testing Library has a rerender function which can be useful for testing changes to props. Let’s test what happens if the step option changes for our hook.

Transcript

Test Updates to Your Custom React Hook with rerender from React Hooks Testing Library