How can you incorporate the error page that create-react-app uses into a custom project?
This is the package you're looking for. Hope this helps.
Link - react-error-overlay
Also the package lives here -https://github.com/facebook/create-react-app/tree/next/packages