Skip to content

Commit a9fa5f4

Browse files
authored
docs: Remove references to React.FC (TanStack#7259)
React.FC was removed from the create-react-app template in facebook/create-react-app#8177 and is no longer recommended.
1 parent 78b594d commit a9fa5f4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/framework/react/guides/suspense.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ When using the component it will reset any query errors within the boundaries of
6161
import { QueryErrorResetBoundary } from '@tanstack/react-query'
6262
import { ErrorBoundary } from 'react-error-boundary'
6363

64-
const App: React.FC = () => (
64+
const App = () => (
6565
<QueryErrorResetBoundary>
6666
{({ reset }) => (
6767
<ErrorBoundary
@@ -86,7 +86,7 @@ When using the hook it will reset any query errors within the closest `QueryErro
8686
import { useQueryErrorResetBoundary } from '@tanstack/react-query'
8787
import { ErrorBoundary } from 'react-error-boundary'
8888

89-
const App: React.FC = () => {
89+
const App = () => {
9090
const { reset } = useQueryErrorResetBoundary()
9191
return (
9292
<ErrorBoundary

docs/framework/react/reference/QueryErrorResetBoundary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ When using **suspense** or **throwOnError** in your queries, you need a way to l
99
import { QueryErrorResetBoundary } from '@tanstack/react-query'
1010
import { ErrorBoundary } from 'react-error-boundary'
1111

12-
const App: React.FC = () => (
12+
const App = () => (
1313
<QueryErrorResetBoundary>
1414
{({ reset }) => (
1515
<ErrorBoundary

docs/framework/react/reference/useQueryErrorResetBoundary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This hook will reset any query errors within the closest `QueryErrorResetBoundar
99
import { useQueryErrorResetBoundary } from '@tanstack/react-query'
1010
import { ErrorBoundary } from 'react-error-boundary'
1111

12-
const App: React.FC = () => {
12+
const App = () => {
1313
const { reset } = useQueryErrorResetBoundary()
1414
return (
1515
<ErrorBoundary

0 commit comments

Comments
 (0)