Skip to content

Tag: javascript

Get value inside unordered list using React UseRef

Hi I have the below code, in which I am trying to get the value inside list using when a person clicks on the button wrapped inside that is inside list element. I tried using UseRef but it is returning all the listed items, but In my case I only want to target the value that is associated with that

how to delay an insertBefore?

It is possible to stop an insertBefore, inside an addEventListener, to add a smooth css, so that the movement produced by the insertion of the div is not abrupt for the user? I have read many questions, i have tried using settimeout in various ways, without success: Answer this refers to a different context i…