Skip to content

Commit c160fcd

Browse files
docs: Fix container destructuring (#805)
1 parent 6617ccc commit c160fcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/dom-testing-library/faq.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ index in question:
9191
const items = [
9292
/* your items */
9393
]
94-
const container = render(/* however you render this stuff */)
94+
const { container } = render(/* however you render this stuff */)
9595
const thirdItem = getAllByRole(container, 'listitem')[2]
9696
```
9797

0 commit comments

Comments
 (0)