11 Replies
Do you think a screenshot is helpful in terms of looking into the code?
you want repo
https://discord.com/channels/436251713830125568/1022288836715356180 / Preferably a pen.
ok i will check that later
can you see my code ?
I am not interested in incomplete screnshots. Please give it some time if you require some of mine.
ok i am waiting you
You are doing this in multiple help posts, if you don't want to spend the time to explain to them don't reply. Include #how-to-ask-good-questions and maybe https://pen.new so they actually understand that you are asking for an demo/example of the code. @Moataz You will get help best if you provide the easiest way for someone to test the code and provide help/feedback. Refer to the above comment.
It is what I do. Though I would expect that when asking, one would provide all details necessary, I understand a novice cannot always express the interntion precisely, but how is it not a no-brainer that a cropped screenshot is worthless??
I think a problem may be useRef in your map() method. useRef wants to store a value, and map() is trying to store many values. You can maybe use an array, or use a different technique to target those elements for changes.
https://react.dev/learn/manipulating-the-dom-with-refs
https://stackoverflow.com/questions/54940399/how-target-dom-with-react-useref-in-map
Manipulating the DOM with Refs – React
The library for web and native user interfaces
Stack Overflow
How target DOM with react useRef in map
I looking for a solution about get an array of DOM elements with react useRef() hook.
example:
const Component = () =>
{
// In
items
, I would like to get an array of DOM element
let i...thanks man
@missymae#2783 lpi.
.i