Skip to content

Bug: Nothing returned from renderer when returning undefined #20089

Closed
@raRaRa

Description

@raRaRa

React version: 17.0.0

Steps To Reproduce

  1. return undefined from a React component

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UnconfirmedA potential issue that we haven't yet confirmed as a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions