-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Create React components in Haskell -- -- This library provides bindings to React that allow you to write -- components in Haskell. Typically, these components will be compiled -- with GHCJS to produce JavaScript for inclusion in a React application. @package react @version 0.1.0.0 module React.Misc t :: Text -> Text tshow :: Show a => a -> Text -- | Everything in this module belongs in JSaddle, GHCJS-DOM, or similar module React.JSaddle consoleLog :: ToJSVal a => a -> JSM JSVal type JSCallAsFunction' = JSVal " Function object" -> JSVal " this" -> [JSVal] " Function arguments" -> JSM JSVal " Return value" function' :: JSCallAsFunction' -> JSM Function' data Function' Function' :: CallbackId -> Object -> Function' [functionCallback'] :: Function' -> CallbackId [functionObject'] :: Function' -> Object instance GHCJS.Marshal.Internal.ToJSVal React.JSaddle.Function' instance GHCJS.Marshal.Internal.PToJSVal React.JSaddle.Function' instance GHCJS.Marshal.Internal.PToJSVal Data.Text.Internal.Text instance GHCJS.Marshal.Internal.PToJSVal GHC.Types.Int instance GHCJS.Marshal.Internal.PToJSVal Language.Javascript.JSaddle.Object.Function instance GHCJS.Marshal.Internal.PToJSVal Language.Javascript.JSaddle.Types.Object instance Data.String.IsString GHCJS.Prim.Internal.JSVal instance GHCJS.Marshal.Internal.ToJSVal v => GHCJS.Marshal.Internal.ToJSVal (Data.Map.Internal.Map Data.Text.Internal.Text v) module React.Types -- | An object that contains the React library newtype React React :: Object -> React [unReact] :: React -> Object newtype Component props refVal Component :: Function' -> Component props refVal [unComponent] :: Component props refVal -> Function' newtype Hook a Hook :: ReaderT React JSM a -> Hook a [unHook] :: Hook a -> ReaderT React JSM a newtype Element Element :: ReaderT React JSM JSVal -> Element [unElement] :: Element -> ReaderT React JSM JSVal newtype Tag Tag :: JSVal -> Tag [unTag] :: Tag -> JSVal instance GHCJS.Marshal.Internal.PToJSVal (React.Types.Component props refVal) instance GHCJS.Marshal.Internal.ToJSVal (React.Types.Component props refVal) instance Control.Monad.IO.Class.MonadIO React.Types.Hook instance Language.Javascript.JSaddle.Types.MonadJSM React.Types.Hook instance GHC.Base.Monad React.Types.Hook instance GHC.Base.Applicative React.Types.Hook instance GHC.Base.Functor React.Types.Hook instance Data.String.IsString React.Types.Tag instance Data.String.IsString React.Types.Element instance Language.Javascript.JSaddle.Classes.Internal.MakeObject (React.Types.Component props refVal) instance Language.Javascript.JSaddle.Classes.Internal.MakeObject React.Types.React module React.Hook useState :: (ToJSVal a, FromJSVal a) => a -> Hook (a, a -> JSM ()) useRef :: JSVal -> Hook JSVal useEffect :: (JSVal -> JSVal -> [JSVal] -> JSM JSVal) -> Maybe [JSVal] -> Hook () useMemo :: (ToJSVal a, FromJSVal a) => JSM a -> Maybe [JSVal] -> Hook a useCallback :: ToJSVal result => (JSVal -> JSVal -> [JSVal] -> JSM result) -> Maybe [JSM JSVal] -> Hook JSVal module React.Export mainExportsToJS :: [Name] -> Q [Dec] nameToExportEntry :: Name -> Q Exp exportToJSIO :: ReaderT React JSM (Map Text JSVal) -> IO () runJS :: (JSVal -> JSM ()) -> IO () printJavaScriptException :: JavaScriptException -> JSM () module React.Element createElement :: Tag -> Map Text JSVal -> [Element] -> Element createFragment :: [Element] -> Element createFragmentWithProps :: Map Text JSVal -> [Element] -> Element module React.Component component :: FromJSVal props => (props -> Hook Element) -> ReaderT React JSM (Component props ()) module React