Skip to content

Commit 9769abd

Browse files
authored
Update render.mdx
1 parent 3b098b2 commit 9769abd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/docs/12.x/docs/api/render.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The `render` function is the entry point for writing React Native Testing Librar
1313
import { render } from '@testing-library/react-native';
1414

1515
test('basic test', () => {
16-
render(<MyApp />);
16+
const screen = render(<MyApp />);
1717
expect(screen.getAllByRole('button', { name: 'start' })).toBeOnTheScreen();
1818
});
1919
```

0 commit comments

Comments
 (0)