All Projects → reasonml-community → bs-downshift

reasonml-community / bs-downshift

Licence: MIT license
BuckleScript bindings for Downshift

Programming Languages

ocaml
1615 projects

Projects that are alternatives of or similar to bs-downshift

sonos-wejay
Slack integration for a local Sonos system
Stars: ✭ 19 (-9.52%)
Mutual labels:  reasonml
ppx rapper
Syntax extension for writing SQL in OCaml
Stars: ✭ 91 (+333.33%)
Mutual labels:  reasonml
bs-Zarith
Support Bigint, Q (rational numbers) and Z (integer numbers) in BuckleScript.
Stars: ✭ 15 (-28.57%)
Mutual labels:  reasonml
LifeTime
LifeTime app
Stars: ✭ 35 (+66.67%)
Mutual labels:  reasonml
bs-immutablejs
Reason + BuckleScript bindings to Immutable.js
Stars: ✭ 28 (+33.33%)
Mutual labels:  reasonml
reasonml-minimal-config
ReasonML minimal webpack config with webpack-dashboard & reports enabled
Stars: ✭ 16 (-23.81%)
Mutual labels:  reasonml
ideas-for-project-names-starting-with-re
No description or website provided.
Stars: ✭ 27 (+28.57%)
Mutual labels:  reasonml
rescript-jest
ReScript bindings for Jest
Stars: ✭ 274 (+1204.76%)
Mutual labels:  reasonml
gobi
Compile OCaml/Reason to static iOS libraries
Stars: ✭ 25 (+19.05%)
Mutual labels:  reasonml
reactor
🚀 Native Actors for Reason and OCaml
Stars: ✭ 70 (+233.33%)
Mutual labels:  reasonml
JsonCodec
JSON combinator library for BuckleScript/Reason
Stars: ✭ 38 (+80.95%)
Mutual labels:  reasonml
reason-vue
ReasonML and Vue
Stars: ✭ 55 (+161.9%)
Mutual labels:  reasonml
Reason-react-hooks
🧶 Some hooks in ReasonML for reason-react that can be useful
Stars: ✭ 14 (-33.33%)
Mutual labels:  reasonml
reasonml-tic-tac-toe
www.imandra.ai
Stars: ✭ 19 (-9.52%)
Mutual labels:  reasonml
reason-catstagram
🐈 Catstagram made with ReasonReact!
Stars: ✭ 31 (+47.62%)
Mutual labels:  reasonml
ogaml
Ocaml multimedia library
Stars: ✭ 28 (+33.33%)
Mutual labels:  reasonml
genTypeScript
Auto generation of type-safe bindings between Reason and Typescript.
Stars: ✭ 75 (+257.14%)
Mutual labels:  reasonml
bs-css-core
BuckleScript statically typed DSL for CSS (forked from https://github.com/SentiaAnalytics/bs-css)
Stars: ✭ 15 (-28.57%)
Mutual labels:  reasonml
agda-mode-vscode
agda-mode on VS Code
Stars: ✭ 112 (+433.33%)
Mutual labels:  reasonml
hello-ppx-esy
A simple example of a ppx with Reason and esy
Stars: ✭ 38 (+80.95%)
Mutual labels:  reasonml

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].