preact-render-to-string
preact-render-to-string copied to clipboard
Support `componentDidCatch(error)`
https://github.com/developit/preact/pull/819 adds support for componentDidCatch(error)
(note that it currently does not include the info
argument)
we will need to support componentDidCatch(error)
to achieve parity with preact
once that PR is merged in
Note that the preact
PR https://github.com/developit/preact/pull/819 does not include support for static getDerivedStateFromError(error)
Documentation here: https://reactjs.org/docs/react-component.html#static-getderivedstatefromerror