8570d19af6
* handle errors of lifecycle methods * handle errors of render method
11 lines
204 B
JavaScript
11 lines
204 B
JavaScript
import 'react-hot-loader/patch'
|
|
import patch from './patch-react'
|
|
|
|
// apply patch first
|
|
patch((err) => {
|
|
console.error(err)
|
|
next.renderError(err)
|
|
})
|
|
|
|
const next = require('./next')
|
|
window.next = next
|