Unverified Commit 91bf0493 authored by Deni Mintsaev's avatar Deni Mintsaev Committed by GitHub

docs: Rename Error component to ErrorPage (#89284)

parent 5eb6eefd
......@@ -206,7 +206,7 @@ Create an error boundary by adding an [`error.js`](/docs/app/api-reference/file-
import { useEffect } from 'react'
export default function Error({
export default function ErrorPage({
error,
reset,
}: {
......@@ -239,7 +239,7 @@ export default function Error({
import { useEffect } from 'react'
export default function Error({ error, reset }) {
export default function ErrorPage({ error, reset }) {
useEffect(() => {
// Log the error to an error reporting service
console.error(error)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment