Cannot run JSX when using <Address> or <Copyable> #2646
Answered
by
ziad-saab
1337-ishaan
asked this question in
Q&A
-
I am refactoring my code to use JSX instead of functions.
This reverts with error
It works fine when I don't use Copyable and/or Address |
Beta Was this translation helpful? Give feedback.
Answered by
ziad-saab
Aug 21, 2024
Replies: 1 comment 6 replies
-
First make sure you are importing all the correct components:
Then, make sure to use the correct syntax:
Neither component has any parameters, just text inside. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@1337-ishaan Looking at the code above however, I see that you're adding children to
Address
andCopyable
. Neither accepts children. The proper way to use them would be: