Skip to content

ReactNode和GNode的区别是什么呢? #6549

Closed Answered by Aarebecca
liaodalin19903 asked this question in Q&A
Discussion options

You must be logged in to vote

是的,ReactNode 支持原生的 React 组件作为节点,GNode 是使用 JSX 的写法,但是只能使用特定的节点类型,如 Rect\Circle 等

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@liaodalin19903
Comment options

Answer selected by hustcc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants