I'm trying to integrate a react component (https://github.com/moroshko/react-autosuggest) within a Pux application, but failing to see how to raise events to be handled by the Pux event loop.
react-autosuggest takes an explicit onChange
callback which gets fed with the new value plus some information on how things changed. I've tried passing in something like:
onChange : (\ev -> QueryChange (targetValue ev))
and while I can see this being called, it only constructs the event, rather than doing anything with it. The renderToReact
code suggests I want to get hold of app.input
, but of course I don't have that in the view
function.