Commit 1b5e724d authored by Fabio Espinosa's avatar Fabio Espinosa Committed by Arunoda Susiripala

Update readme.md (#2412)

The _error.js works only if it is in the /pages folder
parent b86bbb65
...@@ -755,7 +755,7 @@ __Note: React-components outside of `<Main />` will not be initialised by the br ...@@ -755,7 +755,7 @@ __Note: React-components outside of `<Main />` will not be initialised by the br
### Custom error handling ### Custom error handling
404 or 500 errors are handled both client and server side by a default component `error.js`. If you wish to override it, define a `_error.js`: 404 or 500 errors are handled both client and server side by a default component `error.js`. If you wish to override it, define a `_error.js` in the pages folder:
```jsx ```jsx
import React from 'react' import React from 'react'
......
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