Skip to content

Commit f3c1e9c

Browse files
remove FC type of functional component in example (testing-library#1187)
1 parent 61d910a commit f3c1e9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/react-testing-library/setup.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ export {customRender as render}
7878
```
7979

8080
```tsx title="test-utils.tsx"
81-
import React, {FC, ReactElement} from 'react'
81+
import React, {ReactElement} from 'react'
8282
import {render, RenderOptions} from '@testing-library/react'
8383
import {ThemeProvider} from 'my-ui-lib'
8484
import {TranslationProvider} from 'my-i18n-lib'
8585
import defaultStrings from 'i18n/en-x-default'
8686

87-
const AllTheProviders: FC<{children: React.ReactNode}> = ({children}) => {
87+
const AllTheProviders = ({children}:{children: React.ReactNode}) => {
8888
return (
8989
<ThemeProvider theme="light">
9090
<TranslationProvider messages={defaultStrings}>

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