preact-render-to-string icon indicating copy to clipboard operation
preact-render-to-string copied to clipboard

Support `static getDerivedStateFromError(error)`

Open johnhaitas opened this issue 5 years ago • 0 comments

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

johnhaitas avatar Nov 02 '18 17:11 johnhaitas