Skip to content

Commit 4362d1c

Browse files
committed
docs(readme): add documentation for as
1 parent 4b964c5 commit 4362d1c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

readme.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ target library, like [context](https://facebook.github.io/react/docs/context.htm
163163
Directives can provide an [option transformer](#transform-options) in order to
164164
mutate own options beforehand.
165165
166+
- `as`: JSX namespace of the directive attribute. _(Only available on attribute directives)_
167+
168+
Given this jsx `<div onClick:alert="Hello World!" />`, a `alert` attribute directive would
169+
receive `"onClick"` as `as`.
166170
167171
## Transform Options
168172

0 commit comments

Comments
 (0)