Jsx won't render twice. #1134
sksteve128
started this conversation in
General
Replies: 1 comment
-
|
The DOM only lets you attach the same element in a single location. If you want 2 divs I suggest making svg a function and calling it twice in the JSX. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
When I was doing the tutorial on jsx, I tried to render the
<div>object twice, but it doesn't seem to work. Does anyone know any fixes to this? Thanks.Beta Was this translation helpful? Give feedback.
All reactions