liqula / react-hs

A GHCJS binding to React based on the Flux design. The flux design pushes state and complicated logic out of the view, allowing the rendering functions and event handlers to be pure Haskell functions.
32 stars 10 forks source link

How do I add event handlers to window #80

Open tysonzero opened 6 years ago

tysonzero commented 6 years ago

I want to call window.addEventListener("hashchange", func, false);, but would prefer to not have to directly call into the JS FFI, so I was wondering if there was a good way to do that within react-hs.