MISC: enforce eslint react checks (#640)

This commit is contained in:
Aleksei Bezrodnov
2023-06-27 04:29:44 +02:00
committed by GitHub
parent 91bfb154b6
commit 1d5a735941
68 changed files with 2062 additions and 601 deletions
+1 -1
View File
@@ -801,5 +801,5 @@ let customElementKey = 0;
* so the game won't crash and the user gets sensible messages.
*/
export function wrapUserNode(value: unknown) {
return <CustomBoundary key={`PlayerContent${customElementKey++}`} children={value as React.ReactNode} />;
return <CustomBoundary key={`PlayerContent${customElementKey++}`}>{value}</CustomBoundary>;
}