Module

Yoga.React.Om

Package
purescript-yoga-react-om
Repository
rowtype-yoga/purescript-yoga-react-om

#OmRender Source

newtype OmRender :: Row Type -> Type -> Type -> Type -> Typenewtype OmRender ctx x y a

Instances

#omComponent Source

omComponent :: forall @ctx @err hooks props. String -> (props -> OmRender ctx Unit hooks JSX) -> Om (Record ctx) err (props -> JSX)

#useCtx Source

useCtx :: forall @ctx hooks. OmRender ctx hooks (UseCtx ctx hooks) (Record ctx)

#useOm Source

useOm :: forall ctx deps a hooks. Eq deps => deps -> Om (Record ctx) () a -> OmRender ctx hooks (UseOm ctx a hooks) (Maybe a)

#useEffectOm Source

useEffectOm :: forall ctx deps hooks. Eq deps => deps -> Om (Record ctx) () Unit -> OmRender ctx hooks (UseEffectOm ctx hooks) Unit

#UseCtx Source

data UseCtx :: Row Type -> Type -> Typedata UseCtx ctx hooks

#UseOm Source

data UseOm :: Row Type -> Type -> Type -> Typedata UseOm ctx a hooks

#UseEffectOm Source

data UseEffectOm :: Row Type -> Type -> Typedata UseEffectOm ctx hooks

#liftRender Source

liftRender :: forall ctx x y a. Render x y a -> OmRender ctx x y a

#bind Source

bind :: forall a b x y z ctx. OmRender ctx x y a -> (a -> OmRender ctx y z b) -> OmRender ctx x z b

#discard Source

discard :: forall a b x y z ctx. OmRender ctx x y a -> (a -> OmRender ctx y z b) -> OmRender ctx x z b

#pure Source

pure :: forall a x ctx. a -> OmRender ctx x x a

#useState Source

useState :: forall ctx state hooks. state -> OmRender ctx hooks (UseState state hooks) (state /\ ((state -> state) -> Effect Unit))

#useState' Source

useState' :: forall ctx state hooks. state -> OmRender ctx hooks (UseState state hooks) (state /\ (state -> Effect Unit))

#useEffect Source

useEffect :: forall ctx deps hooks. Eq deps => deps -> Effect (Effect Unit) -> OmRender ctx hooks (UseEffect deps hooks) Unit

#useEffectOnce Source

useEffectOnce :: forall ctx hooks. Effect (Effect Unit) -> OmRender ctx hooks (UseEffect Unit hooks) Unit

#useEffectAlways Source

useEffectAlways :: forall ctx hooks. Effect (Effect Unit) -> OmRender ctx hooks (UseEffect Unit hooks) Unit

#useLayoutEffect Source

useLayoutEffect :: forall ctx deps hooks. Eq deps => deps -> Effect (Effect Unit) -> OmRender ctx hooks (UseLayoutEffect deps hooks) Unit

#useLayoutEffectOnce Source

useLayoutEffectOnce :: forall ctx hooks. Effect (Effect Unit) -> OmRender ctx hooks (UseLayoutEffect Unit hooks) Unit

#useLayoutEffectAlways Source

useLayoutEffectAlways :: forall ctx hooks. Effect (Effect Unit) -> OmRender ctx hooks (UseLayoutEffect Unit hooks) Unit

#useRef Source

useRef :: forall ctx a hooks. a -> OmRender ctx hooks (UseRef a hooks) (Ref a)

#useMemo Source

useMemo :: forall ctx deps a hooks. Eq deps => deps -> (Unit -> a) -> OmRender ctx hooks (UseMemo deps a hooks) a

#useReducer Source

useReducer :: forall ctx state action hooks. state -> Reducer state action -> OmRender ctx hooks (UseReducer state action hooks) (state /\ (action -> Effect Unit))

#useId Source

useId :: forall ctx hooks. OmRender ctx hooks (UseId hooks) String

#useTransition Source

useTransition :: forall ctx hooks. OmRender ctx hooks (UseTransition hooks) (Boolean /\ ((Effect Unit) -> Effect Unit))

#useDeferredValue Source

useDeferredValue :: forall ctx a hooks. a -> OmRender ctx hooks (UseDeferredValue a hooks) a

Re-exports from React.Basic.Hooks

#UseTransition Source

#UseState Source

data UseState t0 t1

#UseRef Source

data UseRef t0 t1

#UseReducer Source

data UseReducer t0 t1 t2

#UseMemo Source

data UseMemo t0 t1 t2

#UseLayoutEffect Source

data UseLayoutEffect t0 t1

#UseId Source

data UseId t0

#UseEffect Source

data UseEffect t0 t1

#UseDeferredValue Source

data UseDeferredValue t0 t1

#Reducer Source

newtype Reducer state action
Modules
Yoga.React.Om