你的位置: 码友网首页 / 资讯源列表 / Persisting your users preferences using Blazor and Local Storage

关于[Persisting your users preferences using Blazor and Local Storage]的摘要:

In the last post we saw how you can use TailwindCSS with Blazor to toggle “dark mode” on and off in your web applications. But it’s a pain for your users to have to do this every time. It would be much nicer if this setting was persisted in some way. That way, they’d get the same “mode” each and every time they visit your site.

原文地址: https://jonhilton.net/blazor-tailwind-dark-mode-local-storage/

收录时间: 2021-01-15 浏览量: 1668 分类: Blazor

| 0 收藏 | 0