All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.react.ReactElement.kt Maven / Gradle / Ivy

@file:JsModule("react")
@file:JsNonModule

package react

sealed external interface ReactElement

: ReactNode { val type: ElementType

val props: P val key: Key? } external fun

createElement( type: ElementType

, props: P = definedExternally, vararg children: ReactNode?, ): ReactElement

external fun

cloneElement( element: ReactElement

, props: P = definedExternally, vararg children: ReactNode?, ): ReactElement

external fun isValidElement( element: Any?, ): Boolean





© 2015 - 2025 Weber Informatics LLC | Privacy Policy