1.0.4 ā¢ Published 4 years ago
@msanvarov/bs-reactstrap v1.0.4
bs-reactstrap
These are Bucklescript bindings for Reactstrap.
Currently they are autogenerated based on propTypes. Everything complex (basically not string
or bool
) is just type variable.
š§ It is not completed, we are adding bindings as we go. Doesn't follow semver at this point. š§
Install, npm
yarn add @msanvarov/bs-reactstrap
Setup
Add @msanvarov/bs-reactstrap
to bs-dependencies
in your bsconfig.json
!
{
/* ... */
"bs-dependencies": [
"@msanvarov/bs-reactstrap"
],
/* ... */
}
Usage Example
open BsReactstrap;
let component = ReasonReact.statelessComponent("SomeComponent");
let make = (~onClick, _children) => {
...component,
render: _self => {
<Button color="primary" size="lg" onClick> "Hello" </Button>;
},
};
Check Reactstrap documentation for available props.