Testing our <Counter />
React Component that uses the useState
hook is actually very straightforward with react-testing-library
. Let's give it a whirl!
Hey Kent,
I got a test is not defined
error when running this in codesandbox. Am I missing some references, I tried playing with the dependencies and also imports. Even using @testing-library/react
but I could not get it to work
react-testing-library has been deprecated