preact-render-to-string
preact-render-to-string copied to clipboard
Support `static getDerivedStateFromError(error)`
In addition to supporting componentDidCatch (see https://github.com/developit/preact-render-to-string/issues/64) preact-render-to-string should support static getDerivedStateFromError(error)
Documentation here: https://reactjs.org/docs/react-component.html#static-getderivedstatefromerror