Skip to content

Commit 711f5e5

Browse files
committed
Add note about types
1 parent 215040a commit 711f5e5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

readme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,11 @@ It exports the additional types [`Fragment`][fragment], [`Jsx`][jsx],
353353
[`JsxDev`][jsxdev], [`Options`][options], [`Props`][props], [`Source`][source],
354354
and [`Space`][Space].
355355

356+
The function `toJsxRuntime` returns a `JSX.Element`, which means that the JSX
357+
namespace has to by typed.
358+
Typically this is done by installing your frameworks types (e.g.,
359+
`@types/react`), which you likely already have.
360+
356361
## Compatibility
357362

358363
Projects maintained by the unified collective are compatible with all maintained

0 commit comments

Comments
 (0)