___SINGLE_BACKTICK___@endverbatim directive. - You must check existing Volt components to determine if they're functional or class based. If you can't detect that, ask the user which they prefer before writing a Volt component. ### Volt Functional Component Example @verbatim @volt ___OPEN_PHP_TAG___ use function Livewire\Volt\{state, computed}; state(['count' => 0]); $increment = fn () => $this->count++; $decrement = fn () => $this->count--; $double = computed(fn () => $this->count * 2); ?>

Count: {{ $count }}

Double: {{ $this->double }}