mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-21 21:25:11 +00:00
docs: add tip about islands directory (#29913)
This commit is contained in:
parent
394cf30109
commit
3409073b0b
@ -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