Skip to content

Commit c170ba4

Browse files
authored
fix: add React import statement (testing-library#414)
added React import statement because we are using JSX... otherwise, it was throwing an error
1 parent a033a9f commit c170ba4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/react-testing-library/setup.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ The example below sets up data providers using the
3636

3737
```js
3838
// test-utils.js
39+
import React from "react"
3940
import { render } from '@testing-library/react'
4041
import { ThemeProvider } from 'my-ui-lib'
4142
import { TranslationProvider } from 'my-i18n-lib'

0 commit comments

Comments
 (0)