Skip to content

Commit f0a3dc6

Browse files
docs: Fix example syntax
1 parent 20a1c14 commit f0a3dc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/dom-testing-library/faq.mdx

Lines changed: 1 addition & 1 deletion
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)