Module
Jelly.Data.Hook
- Package
- purescript-jelly
- Repository
- yukikurage/purescript-jelly
#HookInternal Source
type HookInternal r = { context :: r, parentElement :: Element, unmountEffectsRef :: STArray Global (Effect Unit) }
Instances
MonadAsk (HookInternal r) (Hook r)
MonadReader (HookInternal r) (Hook r)
#Hook Source
newtype Hook r a
Hook はコンポーネントの初期化処理を表すモナド
Constructors
Hook (ReaderT (HookInternal r) Effect a)
Instances
Functor (Hook r)
Apply (Hook r)
Applicative (Hook r)
Bind (Hook r)
Monad (Hook r)
MonadEffect (Hook r)
MonadAsk (HookInternal r) (Hook r)
MonadReader (HookInternal r) (Hook r)
MonadRec (Hook r)