Skip to content

Bug: Error occurs when returning empty fragment '<></>' on a page #26295

@Willienn

Description

@Willienn

In was working when i comment a code and see this error
Then i start to test possible ways of reproduce the bug
Notes:
1.using <>{null}</> dont give the error
2.using <>{undefined}</> give the error

React version: 18.2.0

Steps To Reproduce

1.import { Fragment } from "react";

export default async function Companies() {
return (
{/* Or => <></>*/}
);
}

2.Start the localHost (dev server, etc)

The current behavior

image

The expected behavior

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions