Skip to content

Commit 329347a

Browse files
committed
feat: add pickJSXFromProps
1 parent bd73b8d commit 329347a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Copyright 2025 The Lynx Authors. All rights reserved.
2+
// Licensed under the Apache License Version 2.0 that can be found in the
3+
// LICENSE file in the root directory of this source tree.
4+
import type { ReactNode } from 'react';
5+
6+
type JSXRecord = Record<string, {
7+
$$typeof: symbol;
8+
i: number;
9+
}>;
10+
11+
function pickJSXfromProps(props): [ReactNode, JSXRecord] {
12+
// transform jsx to { $$typeof: Symbol, i: 0 } in Record
13+
}

0 commit comments

Comments
 (0)