Full-Page Components

I’ve seen this in “Rendering Components”, in the “Full-Page Components” section

https://laravel-livewire.com/docs/2.x/rendering-components

I havent’t understood what “->section(‘body’);” means… Where do I have to set @section(‘body’) and where @yield(‘body’)?

Then… I have this strange behaviour (at least for me):

If I set

@yield('content')

in my layout, the entire component is displayed in the position where I set @yield(‘content’). It’s strange because the LW component hasn’t @section(‘content’).

It looks like the LW component has a default name and it is ‘content’.

I’m a beginner, sorry if it is a too simple thing!

Marco

Hey, @marco
In livewire V2 you can add {{slot}} in you blade file for that you can use the section property
See more here in Removed: Route::livewire() section