lets say i have a HTML element to be stored as a cache. is it better to store the element in the DOM and using the display: nonedisplay: none to hide it so the user cant see it and when needed change the display to block to make the element visible or get the content of the element like this
<div> <span>lol</span> content</div>
<div> <span>lol</span> content</div>
and save it to a txt file and deleting the element so it longer stays in the DOM and when needed read that saved txt file and insert the element to the DOM which method is better ?(in terms of performance and bugs / problems)
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
R
Reactiflux
The largest chat community for React professionals