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 |
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. |
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
AddressandCopyable. Neither accepts children. The proper way to use them would be: