How can I build a wrapped react component that #4158
drbrady8800
started this conversation in
Polls
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sorry, this shouldn't be listed as a poll but no other categories were available to choose. I am trying to build an icon component that takes a dynamic tag as the name of the icon and then renders that icon based on what is passed into it. You can do this in normal ready simply by importing the entire icon library and then indexing the tag you would like:
This is what I have so far. The issue is that you can't pass a var as a tag, it needs to be a string
Is it possible at all to do this type of dynamic rendering in reflex (possibly using a StatefulComponent)? If not it would be a really nice feature to have.
0 votes ·
Beta Was this translation helpful? Give feedback.
All reactions