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

0.1.0
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

bs-downshift

BuckleScript bindings for Downshift

npm Issues Last Commit Size

Demo

Coming soon

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 03 Jan 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