Vue Hidden Element

 from Red Blob Games
27 Nov 2022

Idea: tell Vue to work on an element that may or may not be in the DOM, and then move that element around in the DOM. From a discord question.

Try typing in the input box, then remove the element. When you put it back (either side) it still has its state.

Source: vue-hidden-element.js

Email me , or tweet @redblobgames, or comment: