Skip to content

Type Alias: SolidElement ​

ts
type SolidElement = ReturnType<typeof createComponent>;

Defined in: packages/solid/src/context.ts:9

What a Solid component renders: JSX.Element in Solid 1.x, Element in 2.x (where solid-js no longer exports the JSX namespace). Taken from createComponent, which both versions export, so one build types against either.

Released under the MIT License. Inspired by spatie/laravel-permission.