Safe Haskell | None |
---|---|
Language | Haskell2010 |
React.Flux.Addons.React
Description
Bindings for the React addons that make sense to use from Haskell. At the moment, that is only the animation and performance tools.
- cssTransitionGroup :: [PropertyOrHandler eventHandler] -> ReactElementM eventHandler a -> ReactElementM eventHandler a
- data PerfAction
- data PerfPrint
- perfToggleButton_ :: [PerfPrint] -> ReactElementM handler ()
- perfA :: PerfAction -> SomeStoreAction
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
data PerfAction Source #
An action to start or stop performance measurement. For details, see https://facebook.github.io/react/docs/perf.html.
Constructors
PerfStart | |
PerfStopAndPrint [PerfPrint] |
Instances
What to print after stopping performance measurement. See https://facebook.github.io/react/docs/perf.html for documentation.
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_
.