This is Bucklescript bindings for Reactstrap. Currently they are autogenerated based on propTypes. Everything complex (basically not string
or bool
) is just type variable.
yarn add bs-reactstrap
Add bs-reactstrap to bs-depenencies in your bs-config. bs!
{
/* ... */
"bs-dependencies": [
"bs-reactstrap"
],
/* ... */
}
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.