File size: 326 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function CircularJSONErrorPage() {
  return <div>This won't render</div>
}

CircularJSONErrorPage.getInitialProps = () => {
  // This creates a circular JSON object
  const object = {}
  object.arr = [object, object]
  object.arr.push(object.arr)
  object.obj = object

  return object
}

export default CircularJSONErrorPage