Skip to content

Commit

Permalink
fix(docs): incorrect type for portal's mount prop (#725)
Browse files Browse the repository at this point in the history
  • Loading branch information
vighnesh153 authored May 25, 2024
1 parent 3897748 commit a6cbc5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/concepts/control-flow/portal.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The content nested within `<Portal>` is rendered and positioned by default at th
/>

This can be changed by passing a `mount` prop to `<Portal>`.
The `mount` prop accepts a function that returns a [DOM node](https://developer.mozilla.org/en-US/docs/Web/API/Node), which will be used as the mount point for the portal content.
The `mount` prop accepts a [DOM node](https://developer.mozilla.org/en-US/docs/Web/API/Node), which will be used as the mount point for the portal content.

```jsx
import { Portal } from "solid-js/web"
Expand Down

0 comments on commit a6cbc5d

Please sign in to comment.