You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The return value of `render` is an object with [useful methods](https://testing-library.com/docs/dom-testing-library/api-queries#queries) for finding elements on the page. You can destructure them out like this:
130
130
131
131
```jsx
132
-
importReactfrom"react-dom";
132
+
importReactfrom"react";
133
133
import { render } from"react-testing-library";
134
134
importButtonfrom"./Button";
135
135
@@ -154,8 +154,8 @@ We're trying to test components that _do stuff_ here, so we need a way to trigge
154
154
Imagine the `Button` component we're testing changes its text from 'click me' to 'just clicked' when you click it.
0 commit comments