Re: Static data for web pages

Hí Melvin, 

> On 10 May 2020, at 7:27 pm, Melvin Carvalho <melvincarvalho@gmail.com> wrote:
> 
> Let me add the class of storage APIs such as SessionStorage, LocalStorage, Cookies, File System API, WebSQL etc. as mentioned here:
> 
> https://web.dev/storage-for-the-web/
> 
> The static variable idea relates more to something in the page itself (body or head)

The DOM is not dissociated from local storage, so the solution is to use the local storage solutions provided by the browser. Just rehydrate state based on those storage solutions. 

Received on Monday, 11 May 2020 03:31:48 UTC