react-haskell: Haskell React bindings
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.
statefulView :: StatefulReact JSString () statefulView = div_ <! class_ "container" $ do str <- getState input_ <! value_ str <! onChange (\_ evt -> toJSStr $ map toUpper $ fromJSStr $ targetValue evt)
|Versions [faq]||220.127.116.11, 18.104.22.168, 22.214.171.124, 2.0.0, 2.0.1|
|Dependencies||base (==4.7.*), haste-lib (==0.4.*), monads-tf, transformers [details]|
|Source repo||head: git clone https://github.com/joelburget/react-haskell.git|
|Uploaded||by joelb at Tue Dec 2 06:46:50 UTC 2014|
|Downloads||2553 total (155 in the last 30 days)|
|Rating||(no votes yet) [estimated by Bayesian average]|
Docs not available [build log]
All reported builds failed as of 2016-12-12 [all 5 reports]
For package maintainers and hackage trustees