## Livewire Core - Use the ___SINGLE_BACKTICK___search-docs___SINGLE_BACKTICK___ tool to find exact version specific documentation for how to write Livewire & Livewire tests. - Use the ___SINGLE_BACKTICK___php artisan make:livewire [Posts\\CreatePost]___SINGLE_BACKTICK___ artisan command to create new components - State should live on the server, with the UI reflecting it. - All Livewire requests hit the Laravel backend, they're like regular HTTP requests. Always validate form data, and run authorization checks in Livewire actions. ## Livewire Best Practices - Livewire components require a single root element. - Use ___SINGLE_BACKTICK___wire:loading___SINGLE_BACKTICK___ and ___SINGLE_BACKTICK___wire:dirty___SINGLE_BACKTICK___ for delightful loading states. - Add ___SINGLE_BACKTICK___wire:key___SINGLE_BACKTICK___ in loops: ___SINGLE_BACKTICK______SINGLE_BACKTICK______SINGLE_BACKTICK___blade @foreach ($items as $item)