feature/IO-3499-React-19: Remove redundant forward refs in favor of React 19 built in ref prop
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
import { forwardRef } from "react";
|
||||
|
||||
const ListComponent = forwardRef(({ style, children, ...props }, ref) => (
|
||||
const ListComponent = ({ style, children, ref, ...props }) => (
|
||||
<div ref={ref} {...props} style={{ ...style }}>
|
||||
{children}
|
||||
</div>
|
||||
));
|
||||
);
|
||||
|
||||
ListComponent.displayName = "ListComponent";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user