DEV Community

Discussion on: Testing with React Testing Library using component instances

Collapse
 
wolverineks profile image
Kevin Sullivan

Does this still work with function components?

Collapse
 
arqex profile image
Javier Marquez

I'm afraid it doesn't. Function component have no instances, we would need to find a way of splitting the tests in a different way.