Skip to content

Commit bd799de

Browse files
authored
update incompatible code excerpt (testing-library#591)
1 parent bcd131e commit bd799de

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/react-testing-library/example-intro.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,10 @@ test('handlers server error', async () => {
131131

132132
### Arrange
133133

134-
The [`render`](./api#render) method renders a React element into the DOM and
135-
returns utility functions for testing the component.
134+
The [`render`](./api#render) method renders a React element into the DOM.
136135

137136
```jsx
138-
const { container, asFragment } = render(<Fetch url="/greeting" />)
137+
render(<Fetch url="/greeting" />)
139138
```
140139

141140
### Act

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy