Module

ReactHocs.Refs

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

#readRef Source

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

#unsafeSetProp Source

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

mutate t by overwritting a property with a new value

#refFn Source

refFn :: forall access eff. (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)