Module

Chameleon.Impl.ReactBasic.Html

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

#Config Source

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

#ConfigOpt Source

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

#runReactHtml Source

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

#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

#uppercaseStyleHack Source

uppercaseStyleHack :: String -> String /\ Foreign

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