Error AtlasError Documentation and Resolution

A valid React element or null must be returned

A valid React element (or null) must be returned.

React requires a component render method to return a valid React element or null, not undefined, an array, or another invalid value.

React error #109runtime
A valid React element (or null) must be returned.
  • A render method returned undefined instead of JSX or null.
  • A render method returned an array or another invalid object.
  • Conditional render logic does not return a valid value on every path.
  1. Ensure the render method always returns a valid React element or null.
  2. Review conditional branches so every path returns an allowed value.
  3. Wrap multiple sibling elements in a single parent or fragment where appropriate.
React Docs: Minified React error #109
React error #109 valid React element or null must be returned: causes and fixes | Error Atlas