1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Update readme.md (#2412)

The _error.js works only if it is in the /pages folder
This commit is contained in:
Fabio Espinosa 2017-06-30 00:49:16 -05:00 committed by Arunoda Susiripala
parent b86bbb65a6
commit 1b5e724d31

View file

@ -755,7 +755,7 @@ __Note: React-components outside of `<Main />` will not be initialised by the br
### 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
import React from 'react'