react-flux-1.0.5: A binding to React based on the Flux application architecture for GHCJS

Safe HaskellNone
LanguageHaskell2010

React.Flux.Addons.React

Contents

Description

Bindings for the React addons that make sense to use from Haskell. At the moment, that is only the animation and performance tools.

Synopsis

Animation

cssTransitionGroup :: [PropertyOrHandler eventHandler] -> ReactElementM eventHandler a -> ReactElementM eventHandler a Source

The ReactCSSTransitionGroup element. For example in React 0.14,

cssTransitionGroup ["transitionName" $= "example", transitionAppear @= True, transitionAppearTimeout @= (100 :: Int)] $
    h1_ "Fading at initial mount"

Perf

perfToggleButton_ :: [PerfPrint] -> ReactElementM handler () Source

A button which when clicked toggles the performance measurement on and off. When the measurement is stopped, the given measurements are printed. If you want more control over the performance tools, you can use perfA directly from your own event handlers.

perfA :: PerfAction -> SomeStoreAction Source

Convert a performance action into a store action. Use this if you are not using perfToggleButton_.