Rendering function usage problem #6181
Unanswered
kimmy-wang
asked this question in
Help/Questions
Replies: 2 comments
-
It's usually a bad practice to have a prop with the same of a HTML attribute if you don't intend to pass it to the respective attribute, because it obscures the component's goals. One workaround is using the new |
Beta Was this translation helpful? Give feedback.
0 replies
-
Is like this? |
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.
-
When using the
rendering
function, if a key value inprops
is the same as akey
inattrs
, it will cause pollution. How to deal with it?docs
https://v3-migration.vuejs.org/breaking-changes/render-function-api.html#vnode-props-format
https://vuejs.org/guide/extras/render-function.html#render-functions-jsx
Beta Was this translation helpful? Give feedback.
All reactions