Module

Chameleon.Impl.ReactBasic

Package
purescript-chameleon-react-basic
Repository
thought2/purescript-chameleon-react-basic

Re-exports from Chameleon.Impl.ReactBasic.Html

#ConfigOpt Source

type ConfigOpt = { cssStringToAttr :: String -> String /\ Foreign, key :: Maybe Key }

#Config Source

type Config a = { handler :: a -> Effect Unit }

#uppercaseStyleHack Source

uppercaseStyleHack :: String -> String /\ Foreign

This is a hack to provide styles as string to React It creates a warning in the console

#simpleSplit Source

simpleSplit :: String -> String /\ Foreign

This is a very simple parser for CSS strings It does not work for all cases, but it is enough for most of them

#runReactHtml Source

runReactHtml :: forall a. Config a -> ConfigOpt -> ReactHtml a -> JSX

Re-exports from Chameleon.Impl.ReactBasic.Mount

#UI Source

type UI :: (Type -> Type) -> Type -> Type -> Typetype UI html msg sta = { init :: sta, update :: msg -> sta -> sta, view :: sta -> html msg }

#uiToReactComponent Source

uiToReactComponent :: forall msg sta. { onStateChange :: sta -> Effect Unit } -> UI ReactHtml msg sta -> Component (Record ())