BuckleScript bindings for Downshift
npm install bs-downshiftbs-downshiftBuckleScript bindings for Downshift




![Last Commit]()
_Coming soon_
downshift libraryCompatible with downshift v1.25.0.
> Using newer versions of downshift might break the bindings as the API might have changed. Use at your own risk.
#### yarn
``bash`
$ yarn add bs-downshift
#### bsconfig
Add bs-downshift to your bs-dependencies: bsconfig.json
`json`
"bs-dependencies": [
"bs-downshift",
"reason-react"
]
See examples folder.
The render prop is a function that passes an object which contains _methods_ and _values_.
In ReasonML, this object is represented as a module called ControllerStateAndHelpers.
To make use of the _methods_ and _values_ within that module, you need to call it by passing the argument type (which is of type ControllerStateAndHelpers.t and does effectively the binding to the JS object method) like:
`js``
render=(
t => {
ControllerStateAndHelpers.toggleMenu(t, ());
/ ... /
}
)
You can see that in the examples folder.