SPACE DOG
SPACE DOG15mo ago

Is there a way to copy an element and place it somewhere else?

Stack Overflow
Is there a way to copy an element and place it somewhere else in fr...
I have been wondering if there is any easy way to copy an element and then place the copied element somewhere else like under the original element by using deno fresh. Here's what I have tried: The...
9 Replies
TheYuriG
TheYuriG15mo ago
what's the use case? you would be messing the vdom that fresh needs. why not use state and hide in one place and show in another?
marvinh.
marvinh.15mo ago
I don't think there is something ready made for that as it's a bit of a very niche use case. That said it should work like in any other framework. P.S.: I wouldn't trust ChatGPT with Fresh stuff. The code it returned for fresh uses exports from Fresh that don't exist
SPACE DOG
SPACE DOG15mo ago
To make a website where in everyone can share their code.
TheYuriG
TheYuriG15mo ago
not the website purpose, the purpose of moving the element i'm trying to understand how a state can't fit this need
SPACE DOG
SPACE DOG15mo ago
Not to move a element to copy a element
TheYuriG
TheYuriG15mo ago
just copying to clipboard to paste later? you don't want to move a dom node?
SPACE DOG
SPACE DOG15mo ago
No I want to copy a dom node And Place it somewhere else in the website itself
NeTT
NeTT15mo ago
what does this have to do with this
SPACE DOG
SPACE DOG15mo ago
Yes