A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/reasonml-community/bs-downshift/blob/master below:

reasonml-community/bs-downshift: BuckleScript bindings for Downshift

BuckleScript bindings for Downshift

Coming soon

Compatibility with original downshift library

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.

Add bs-downshift to your bs-dependencies: bsconfig.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:

render=(
  t => {
    ControllerStateAndHelpers.toggleMenu(t, ());
    /* ... */
  }
)

You can see that in the examples folder.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4