bs-downshift
BuckleScript bindings for Downshift
Demo
Coming soon
downshift
library
Compatibility with original Compatible 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.
Install and setup
yarn
$ yarn add bs-downshift
bsconfig
Add bs-downshift
to your bs-dependencies
: bsconfig.json
"bs-dependencies":
Usage
See examples folder.
render
function
Usage of 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:
render= { ControllerStateAndHelpers; /* ... */ }
You can see that in the examples folder.