You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The simple fix is of course to return null instead of return undefined, but I never saw this breaking change documented for React 17.0.0. Apologies if this is by design.
@kachkaev Thanks. I've never noticed this warning during the development of my app in React 16, very odd. I'll close this issue since this is by design.
React version: 17.0.0
Steps To Reproduce
Link to code example:
https://codesandbox.io/s/blazing-rain-jtdzy?file=/src/App.js
The current behavior
Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.
The expected behavior
Nothing should be rendered like in earlier React versions.
The text was updated successfully, but these errors were encountered: