Module

ReactHocs.Refs

Package
purescript-react-hocs
Repository
coot/purescript-react-hocs

#readRef Source

readRef :: forall eff access. String -> Foreign -> Eff (refs :: ReactRefs (read :: Read | access) | eff) (F HTMLElement)

#unsafeSetProp Source

unsafeSetProp :: forall s p a e. String -> ReactThis p s -> a -> Eff e Unit

mutate t by overwritting a property with a new value

#refFn Source

refFn :: forall eff access. (HTMLElement -> Eff (refs :: ReactRefs (write :: Write | access) | eff) Unit) -> Props

example refCb (unsafeSetProp "childElement" this) you can readit back from this :: ReactThis props state with readRef name (toForeign this)