-
Notifications
You must be signed in to change notification settings - Fork 174
-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic Component/Tag Name #123
Comments
Not clear what you want to achieve, but here a small working example: https://scrimba.com/c/c4V23fR |
I see, it seems the problems are with imba-router. Because for some reason, the routing doesn't applied on the dynamic rendered page. I had forked your "small working example" in https://scrimba.com/c/cqanzTQ with no luck. I believe this is more of an imba-router issue. I'll leave this issue open for a while since I'm still figuring out a way to do this. I think dynamic components are one of the basic pattern in front end development framework, there are a lot of use case and discussion about this topic on another framework such as react or vue. I believe by making thread on github issues will make a better chance for the community to grow and benefit from it when they across the same problem. IMHO, browsing an issue through gitter channel is not a good experience while github issue can make the problem well documented. |
Dynamic routing assumes that you pass the parameter to the page tag, and there depending on that parameter could render different tags. And in the Page tag in render function: |
@rmdwirizki have you gotten a chance to play around with any of the v2 prereleases? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Can we render components dynamically? To be specific, I want to render each component inside an array of tags.
I've tried this, but it didn't work (the page not showing):
Where
myComponent
defined manually in each component:The text was updated successfully, but these errors were encountered: