18
30%
MIT
Bucklescript bindings for Reactstrap

bs-reactstrap

This is Bucklescript bindings for Reactstrap. Currently they are autogenerated based on propTypes. Everything complex (basically not string or bool) is just type variable.

Install

yarn add bs-reactstrap

Setup

Add bs-reactstrap to bs-depenencies in your bs-config. bs!

{
  /* ... */
  "bs-dependencies": [
    "bs-reactstrap"
  ],
  /* ... */
}

Usage Example

open BsReactstrap;

let component = ReasonReact.statelessComponent("SomeComponent");

let make = (~onChange, _children) => {
  ...component,

  render: _self => {
    <Button color="primary" size="lg" onClick=(_e => Js.log("Hi!"))>
      Hello
    </Button>
  }
};

Check Reactstrap documentation for available props.