New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bs-downshift

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bs-downshift

BuckleScript bindings for Downshift

1.0.1
latest
Source
npm
Version published
Maintainers
1
Created
Source

bs-downshift

BuckleScript bindings for Downshift

npm Issues Dependencies Issues Last Commit

Demo

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.

Install and setup

yarn
$ yarn add bs-downshift
bsconfig

Add bs-downshift to your bs-dependencies: bsconfig.json

"bs-dependencies": [
  "bs-downshift",
  "reason-react"
]

Usage

See examples folder.

Usage of render function

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.

Keywords

BuckleScript

FAQs

Package last updated on 27 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts