How can we test useState hooks inside a void function with jest and enzyme?

I'm new to unit-testing and writing test cases using jest and enzyme in React. Can someone please...
Tags: react, enzyme, jest, testing