react-haskell: Haskell React bindings | Hackage

Home Search Browse What's new Upload User accounts react-haskell: Haskell React bindings [ Tags : library , mit ] This package provides high level bindings to Facebook's React library, meant for use with Haste . React is a JavaScript library for building user interfaces. React (and React-Haskell) is focused on just UI - it's not a framework. Currently React-Haskell can render simple stateful components, but not what React calls classes. Put another way, React-Haskell doesn't support lifecycle methods yet. Here's a simple example which demonstrates basic elements, attributes, state, and handling events. -- We're creating a class with JSString state data Example instance ReactKey Example where type ClassState Example = JSString type AnimationState Example = () type Signal Example = JSString -- updating to the new state without animation transition :: JSString -> JSStr...

Linked on 2015-04-29 01:59:30 | Similar Links