File size: 331 Bytes
b91e262
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'use client'

import styles from './style.module.css'

export default function ErrorBoundary({ error, reset }) {
  return (
    <>
      <p id="error-boundary-message">An error occurred: {error.message}</p>
      <button id="reset" onClick={() => reset()} className={styles.button}>
        Try again
      </button>
    </>
  )
}