SolidJSS
SolidJS13mo ago
Liana

Using refs in list rendering

Is there any way to use refs in list rendering? In a <For> or <Index>, I'd like to have an array of refs, or generally a way to retrieve ref to an element in the list by index. I can't find any mention of it in the docs, and given that ref takes a variable or signal, I don't see how to assign a specific array key rather than a hardcoded variable.
Was this page helpful?