Error AtlasError Documentation and Resolution

Nothing was returned from render

Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.

A component render path returned nothing instead of JSX or null.

React error #152runtime
Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.
  • A component is missing a return statement.
  • An arrow function uses braces without explicitly returning JSX.
  • Conditional logic leaves one render path returning undefined.
  1. Add a return statement so the component returns JSX.
  2. Use an explicit return when using braces in an arrow function component.
  3. Return null when the component should intentionally render nothing.
React Docs: Minified React error #152
React error #152 nothing was returned from render: causes and fixes | Error Atlas