Create a Web Component to keep track of your input’s draft using StencilJS
Earlier this week, I saw a tweet of Ali Spittel who was trying to figure out how GitHub, Twitter and others, were able to keep track of the draft of your inputs respectively how such platforms were saving and restoring the content of your input
or textarea
before you would actually submit them and if the browser would refresh.