-
Notifications
You must be signed in to change notification settings - Fork 50.4k
Closed
Labels
Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug
Description
React version: v16
Steps To Reproduce
import React from "react";
export const Q = React.memo(() => {});
export const Z = React.forwardRef(() => {});
export default function App() {
return (
<>
<Q />
<Z />
</>
);
}Link to code example: https://codesandbox.io/s/hoc-throw-null-xrhwg
The current behavior
No errors.
The expected behavior
Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.
Metadata
Metadata
Assignees
Labels
Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug