title: Livewire 2.2: Undefined variable slot in app.blade.php
body: <p>I am using livewire 2.2 with laravel 7.24 in my laravel project. When i load component using</p>
  <pre><code>Route::get('/path', ComponentClassPath);
  </code></pre>
  <p>it works, but when i load my livewire component inside a blade view. For instance, test.blade.php like this:</p>
  <pre><code>@extends('layouts.app')
  
  @section('content')
      @livewire(&quot;my-livewire-component&quot;)
  @endsection
  </code></pre>
  <p>it doesn't work and shows the below error:</p>
  <blockquote>
  <p>Undefined variable: slot (View:
  E:\xampp\htdocs\lw\resources\views\layouts\app.blade.php) .</p>
  </blockquote>
  <p>app.blade.php</p>
  <pre><code>&lt;head&gt;
     @livewireStyles
  &lt;/head&gt;
  &lt;body&gt;
     &lt;div class=&quot;container&quot;&gt;
         {{ $slot }}
     &lt;/div&gt;
  
     @livewireScripts
  &lt;/body&gt;
  </code></pre>
  <p>Any solution ?</p>