Skip to content

Commit

Permalink
React. Separate file for createRef
Browse files Browse the repository at this point in the history
  • Loading branch information
turansky committed Dec 7, 2024
1 parent ded99ad commit 788f59a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions kotlin-react-core/src/jsMain/kotlin/react/createRef.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@file:JsModule("react")

package react

external fun <T : Any> createRef(): RefObject<T>
2 changes: 0 additions & 2 deletions kotlin-react-core/src/jsMain/kotlin/react/useRef.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

package react

external fun <T : Any> createRef(): RefObject<T>

// Ref Hook (16.8+)
external fun <T : Any> useRef(
initialValue: T? = definedExternally,
Expand Down

0 comments on commit 788f59a

Please sign in to comment.