bs-reactstrap

0.1.2 • Public • Published

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.

Package Sidebar

Install

npm i bs-reactstrap

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

50.7 kB

Total Files

75

Last publish

Collaborators

  • rustykey