Skip to content

Commit 3aea5a0

Browse files
add warning about use directive on custom components (#952)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 984904b commit 3aea5a0

File tree

1 file changed

+5
-0
lines changed
  • src/routes/reference/jsx-attributes

1 file changed

+5
-0
lines changed

src/routes/reference/jsx-attributes/use.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,8 @@ declare module "solid-js" {
3434
}
3535
}
3636
```
37+
38+
<Callout type="caution" title="Limitations">
39+
Directives only work with native HTML elements (HTML/SVG/MathML/Custom Elements).
40+
Directives are not forwarded and **won't work in user defined components**, such as `<MyComponent use:myinput={[..]}/>` [see also](https://github.com/solidjs/solid/discussions/722)
41+
</Callout>

0 commit comments

Comments
 (0)