Problem Report
This component throws warning
getDerivedStateFromProps(): A valid state object (or null) must be returned
Problem was described here facebook/react#12562 and solution is to return a null instead of implicit undefined

System Info
Node Version: v12.12.0
Browser: Chrome 78
OS: Mac OS 10.14.6
Reproduction
In the codesandbox there is no warning ¯_(ツ)_/¯
Problem Report
This component throws warning
getDerivedStateFromProps(): A valid state object (or null) must be returnedProblem was described here facebook/react#12562 and solution is to return a null instead of implicit undefined
System Info
Node Version: v12.12.0
Browser: Chrome 78
OS: Mac OS 10.14.6
Reproduction
In the codesandbox there is no warning ¯_(ツ)_/¯