SolidJSS
SolidJS3y ago
60 replies
crowned

How to allow updating of elements instead of destroying and rendering the elements?

I have an array of 100 objects and an div is rendered for each object. Whenever the array changes, a new set of 100 divs are rendered for the new objects. How do I make it such that there are always 100 divs and whenever the array changes, the contents of these divs are changed instead of the divs being re-rendered (destroyed and created).
I'm doing this to improve performance and user experience
Was this page helpful?