mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
docs: add tip about islands directory (#29913)
This commit is contained in:
parent
05328d68e4
commit
a503b04f58
@ -41,6 +41,10 @@ Remote islands need `experimental.componentIslands` to be `'local+remote'` in yo
|
||||
It is strongly discouraged to enable `dangerouslyLoadClientComponents` as you can't trust a remote server's javascript.
|
||||
::
|
||||
|
||||
::note
|
||||
By default, component islands are scanned from the `~/components/islands/` directory. So the `~/components/islands/MyIsland.vue` component could be rendered with `<NuxtIsland name="MyIsland" />`.
|
||||
::
|
||||
|
||||
## Slots
|
||||
|
||||
Slots can be passed to an island component if declared.
|
||||
|
Loading…
Reference in New Issue
Block a user