how to use render function to return router-view-slot? #2152
Replies: 2 comments
-
Here's an example: In that example, I'm importing In general, h(RouterView, null, ({ Component }) => Component) If you wanted to write that out in full it might be something like this: h(RouterView, null, {
default({ Component }) {
return Component ? h(Component) : null
}
}) The code above also needs to take account of the initial value of |
Beta Was this translation helpful? Give feedback.
0 replies
-
thanks for your help. |
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
-
I want use render function to achieve the same effect.
my code is
the resule is blank page
thanks.
Beta Was this translation helpful? Give feedback.
All reactions