Replies: 3 comments 2 replies
-
It can do that. Refer to playground. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Do not use ref in render functions. Use the value instead:
|
Beta Was this translation helpful? Give feedback.
1 reply
-
This is the native semantics of JS, we cannot break it, just like Reactivity Transform. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
在当前版本中, 不支持直接解构 restProps
支持组件直接解构 refs, 无需当心因解构 props 而失去响应式,且无需任何多余的 api , 且向下兼容
在 sfc 中
同样在 tsx 中
Beta Was this translation helpful? Give feedback.
All reactions