# Alpine.js Core Patterns for Single-Page Applications ⚡ These zero-build Alpine.js patterns provide reactive state management directly in HTML. Use these snippets to make your single-page websites snappy, interactive, and responsive. --- ## 1. Dark/Light Mode Switcher with Persistence Place this in ``: ```html ``` --- ## 2. Dynamic Tab Navigation Switch between multiple views without page reloads: ```html