Skip to content

Commit

Permalink
docs: Remove references to React.FC (#7259)
Browse files Browse the repository at this point in the history
React.FC was removed from the create-react-app template in
facebook/create-react-app#8177 and is no longer recommended.
  • Loading branch information
antgonzales committed Apr 11, 2024
1 parent 78b594d commit a9fa5f4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/framework/react/guides/suspense.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ When using the component it will reset any query errors within the boundaries of
import { QueryErrorResetBoundary } from '@tanstack/react-query'
import { ErrorBoundary } from 'react-error-boundary'

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

const App: React.FC = () => {
const App = () => {
const { reset } = useQueryErrorResetBoundary()
return (
<ErrorBoundary
Expand Down
2 changes: 1 addition & 1 deletion docs/framework/react/reference/QueryErrorResetBoundary.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ When using **suspense** or **throwOnError** in your queries, you need a way to l
import { QueryErrorResetBoundary } from '@tanstack/react-query'
import { ErrorBoundary } from 'react-error-boundary'

const App: React.FC = () => (
const App = () => (
<QueryErrorResetBoundary>
{({ reset }) => (
<ErrorBoundary
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This hook will reset any query errors within the closest `QueryErrorResetBoundar
import { useQueryErrorResetBoundary } from '@tanstack/react-query'
import { ErrorBoundary } from 'react-error-boundary'

const App: React.FC = () => {
const App = () => {
const { reset } = useQueryErrorResetBoundary()
return (
<ErrorBoundary
Expand Down

0 comments on commit a9fa5f4

Please sign in to comment.