Skip to content

Commit

Permalink
Document Ref
Browse files Browse the repository at this point in the history
  • Loading branch information
megamaddu committed Aug 2, 2019
1 parent c97f284 commit 3106c92
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/React/Basic.purs
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ foreign import data ReactComponent :: Type -> Type
-- | caution.
foreign import data ReactComponentInstance :: Type -> Type -> Type

-- | A React Ref, as created by `React.createRef`
foreign import data Ref :: Type -> Type

-- | Convert a React-Basic `ComponentSpec` to a JavaScript-friendly React component.
-- | This function should only be used for JS interop and not normal React-Basic usage.
-- |
Expand Down Expand Up @@ -474,5 +477,3 @@ foreign import element_
foreign import elementKeyed_
:: forall props
. Fn2 (ReactComponent { | props }) { key :: String | props } JSX

foreign import data Ref :: Type -> Type

0 comments on commit 3106c92

Please sign in to comment.