Skip to content

Commit

Permalink
React. Separate file for isValidElement
Browse files Browse the repository at this point in the history
  • Loading branch information
turansky committed Jan 2, 2025
1 parent b98db70 commit 8309be6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 7 additions & 0 deletions kotlin-react-core/src/jsMain/kotlin/react/IsValidElement.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@file:JsModule("react")

package react

external fun isValidElement(
element: Any?,
): Boolean
4 changes: 0 additions & 4 deletions kotlin-react-core/src/jsMain/kotlin/react/ReactElement.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,3 @@ external fun <P : Props> createElement(
props: P? = definedExternally,
vararg children: ReactNode?,
): ReactElement<P>

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

0 comments on commit 8309be6

Please sign in to comment.