Check out a free preview of the full Testing React Applications, v2 course:
The "Using DOM Events Exercise" Lesson is part of the full, Testing React Applications, v2 course featured in this preview video. Here's what you'd learn in this lesson:

In this exercise, students use react-testing-library to render our React component into the document to use real events rather than simulated events in our tests.

Get Unlimited Access Now

Transcript from the "Using DOM Events Exercise" Lesson

>> Kent C. Dodds: Cool. Let's go ahead and move on to this next step. We don't need react on any more. For your next task, I have this big explanation for why we have to do what we're about to do. But the objective is to get rid of this stimulate.submit thing and actually be able to click on the button.

[00:00:32] So, go ahead and give that a whirl