Grain
- Package
 - purescript-grain
 - Repository
 - purescript-grain/purescript-grain
 
Re-exports from Grain.Class 
#NonKeyedGrain Source
class NonKeyedGrain :: (Type -> Type) -> Type -> Constraintclass (Grain p a) <= NonKeyedGrain p a
Instances
(GlobalGrain a) => NonKeyedGrain GProxy a(LocalGrain a) => NonKeyedGrain LProxy a
Re-exports from Grain.Class.GProxy  
#GlobalGrain Source
class GlobalGrain a Representation of a partial state of application state.
You can use this to define global state.
TypeRef is used as state key internally for uniqueness.
Re-exports from Grain.Class.KGProxy  
#KeyedGlobalGrain Source
class (GrainKey k) <= KeyedGlobalGrain k a | a -> kRepresentation of a partial state of application state.
You can use this to define global state with key for dynamic items.
The first parameter is a type of key for each item, and the second parameter is a type of item.
TypeRef is used as state key internally for uniqueness.
Re-exports from Grain.Class.LProxy  
#LocalGrain Source
class LocalGrain a Representation of a component-local state.
TypeRef is used as state key internally for uniqueness.
Re-exports from Grain.TypeRef 
#fromConstructor Source
fromConstructor :: forall a. a -> TypeRefCreate a TypeRef.
Treat a constructor function as reference of type.
Re-exports from Grain.UI 
#useValue Source
useValue :: forall p a. NonKeyedGrain p a => p a -> Render aListen a state, then return it.
If the state is changed, the component will be rerendered.
#useUpdater Source
useUpdater :: forall p a. NonKeyedGrain p a => p a -> Render ((a -> a) -> Effect Unit)Get an updater of a state.
#useKeyedValue Source
useKeyedValue :: forall k a. KeyedGlobalGrain k a => KGProxy k a -> k -> Render aListen a keyed global state, then return it.
If the state is changed, the component will be rerendered.
#useKeyedUpdater Source
useKeyedUpdater :: forall k a. KeyedGlobalGrain k a => KGProxy k a -> Render (k -> (a -> a) -> Effect Unit)Get an updater of a keyed global state.
#useKeyedFinder Source
useKeyedFinder :: forall k a. KeyedGlobalGrain k a => KGProxy k a -> Render (k -> Effect a)Get a finder of a keyed global state.
- Modules
 - Grain
 - Grain.
Class  - Grain.
Class. GProxy  - Grain.
Class. KGProxy  - Grain.
Class. LProxy  - Grain.
Internal. Diff  - Grain.
Internal. Element  - Grain.
Internal. Emitter  - Grain.
Internal. Handler  - Grain.
Internal. MArray  - Grain.
Internal. MMap  - Grain.
Internal. MObject  - Grain.
Internal. Prop  - Grain.
Internal. PropDiff  - Grain.
Internal. Ref  - Grain.
Internal. SpecialProp  - Grain.
Internal. Store  - Grain.
Internal. Styler  - Grain.
Internal. Util  - Grain.
Markup  - Grain.
Markup. Element  - Grain.
Markup. Handler  - Grain.
Markup. Prop  - Grain.
TypeRef  - Grain.
UI